Download the PHP package pdazcom/laravel-walletone without Composer
On this page you can find all versions of the php package pdazcom/laravel-walletone. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pdazcom/laravel-walletone
More information about pdazcom/laravel-walletone
Files in pdazcom/laravel-walletone
Package laravel-walletone
Short Description Laravel integration walletone.com
License MIT
Homepage http://github.com/pdazcom/laravel-walletone
Informations about the package laravel-walletone
Laravel WalletOne
Implementation of WalletOne payments for laravel 5. There are form of payment and a middleware for processing requests for confirmation of payments from the walletone service. Based on two events - SuccessPayment and FailedPayment.
Install
Via Composer
Then in config/app.php add service-provider and facade alias:
Usage
First of all you need to run:
and then fill config/wallet-one.php
file.
Then you can use \WalletOne
facade.
To add options use \WalletOne::addWalletOptions($options)
To get fields for payment form use \WalletOne::getFields()
. And send it to your view:
To include payment form to your page just include it to view:
To process requests of WalletOne payment notifications just create listeners of two events:
Pdazcom\LaravelWalletOne\Events\FailedPayment
and Pdazcom\LaravelWalletOne\Events\SuccessPayment
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Konstantin A.
- All Contributors
License
The MIT License (MIT). Please see License File for more information.