Download the PHP package kingsley/voguepay-laravel without Composer
On this page you can find all versions of the php package kingsley/voguepay-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kingsley/voguepay-laravel
More information about kingsley/voguepay-laravel
Files in kingsley/voguepay-laravel
Package voguepay-laravel
Short Description A Laravel 5 Package for VoguePay
License MIT
Informations about the package voguepay-laravel
voguepay-laravel
A laravel 5 Package for Voguepay
Installation
PHP 5.4+ or HHVM 3.3+, and Composer are required.
To get the latest version
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
.
If you use Laravel >= 5.5 you can skip this step and go to Configuration
- Kingsley\Voguepay\VoguepayServiceProvider::class
Also register the facade
'aliases' => [
...
'Voguepay' => Kingsley\Voguepay\Facades\Voguepay::class,
...
]
Configuration
You can publish your facade using this command directly
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:
Usage
Open your .env file and place this config settings
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
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.
Appreciation
I want to urge you to please star my repo and contribute to the payment community at large