A simple Laravel implementation for all payment providers.
You can install the package via composer:
composer require digitwires/payway
This is the contents of the published config file:
php artisan vendor:publish --tag="payway-config"
This is the contents of the published lang file:
php artisan vendor:publish --tag="payway-lang"
You can navigate to the Payment Providers Docs file to see their examples or click on the links below.
The following example shows how to use the package with any payment provider.
$payway = new PaypalGateway(); // OR any available payment class
$payway->initPayment([
'amount' => 100,
'user_id' => '111',
'user_first_name' => 'John',
'user_last_name' => 'Doe',
'user_email' => 'john@example.com',
'user_phone' => '+11234567890',
'source' => 'website',
'currency' => 'USD',
]);
The following example shows how to verify payments with any payment provider.
$payway = new PaypalGateway(); // OR any available payment class
$payway->verifyPayment($request)
use Digitwires\Payway\Classes\PaypalGateway;
use Digitwires\Payway\Classes\PaytabsGateway;
use Digitwires\Payway\Classes\PaymobGateway;
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover a security vulnerability within this package, please email ahmed_noreldin@outlook.com
The MIT License (MIT). Please see License File for more information.