2017 © Pedro Peláez
 

library voguepay-laravel

A Laravel 5 Package for VoguePay

image

kingsley/voguepay-laravel

A Laravel 5 Package for VoguePay

  • Wednesday, July 18, 2018
  • by kingsleyudenewu
  • Repository
  • 3 Watchers
  • 2 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

voguepay-laravel

A laravel 5 Package for Voguepay , (*1)

Installation

PHP 5.4+ or HHVM 3.3+, and Composer are required., (*2)

To get the latest version, (*3)

composer require kingsley/voguepay-laravel

Once Voguepay Laravel is installed, you need to register the service provider. Open up config/app.php and add the following to the providers., (*4)

, (*5)

If you use Laravel >= 5.5 you can skip this step and go to Configuration
  • Kingsley\Voguepay\VoguepayServiceProvider::class

Also register the facade, (*6)

'aliases' => [
    ...
    'Voguepay' => Kingsley\Voguepay\Facades\Voguepay::class,
    ...
]

Configuration

You can publish your facade using this command directly, (*7)

php artisan vendor:publish --provider="Kingsley\Voguepay\VoguepayServiceProvider"

A configuration-file named voguepay.php with some sensible defaults will be placed in your config directory:, (*8)

 getenv('VOGUEPAY_V_MERCHANT_ID'),
     /**
      * Currency From Voguepay Dashboard
      * Required
      */
     'cur' => getenv('VOGUEPAY_CURRENCY'),
     /**
      * Developer Code From Voguepay Dashboard
      * Optional
      */
     'developer_code' => getenv('VOGUEPAY_DEVELOPER_CODE'),
     /**
      * Voguepay Payment URL
      * Required
      */
     'paymentUrl' => getenv('VOGUEPAY_PAYMENT_URL'),
     /**
      * Optional notification Url From Merchant Voguepay Settings
      *
      */
     'notify_url' => getenv('VOGUEPAY_NOTIFY_URL'),
     /**
      * Optional success Url From Merchant Voguepay Settings
      *
      */
     'success_url' => getenv('VOGUEPAY_SUCCESS_URL'),
     /**
      * Optional failed Url From Merchant Voguepay Settings
      *
      */
     'fail_url' => getenv('VOGUEPAY_FAIL_URL'),
 ];
?>

Usage

Open your .env file and place this config settings, (*9)

    VOGUEPAY_V_MERCHANT_ID=xxxxxxxxxx
    VOGUEPAY_CURRENCY=xxxxxxxx
    VOGUEPAY_DEVELOPER_CODE=xxxxxxxx
    VOGUEPAY_PAYMENT_URL=xxxxxxxx
    VOGUEPAY_NOTIFY_URL=xxxxxxxx
    VOGUEPAY_SUCCESS_URL=xxxxxxxxxx
    VOGUEPAY_FAIL_URL=xxxxxxxxxx

Lets take a look at some sample codes below, (*10)

Create a Route Pay
Route::post('/pay', 'PaymentController@redirectToGateway')->name('pay'); 
Create a Controller PaymentController

Contribution

Please feel free to fork this package and contribute by submitting a pull request to enhance the functionalities., (*11)

Appreciation

I want to urge you to please star my repo and contribute to the payment community at large, (*12)

The Versions

18/07 2018

dev-master

9999999-dev

A Laravel 5 Package for VoguePay

  Sources   Download

MIT

The Requires

 

The Development Requires

by Kingsley Udenewu

laravel php laravel 5 payments github subscription open source voguepay voguepay.com