digitwires/payway
最新稳定版本:v1.0.4
Composer 安装命令:
composer require digitwires/payway
包简介
Payment Helper of Payment Gateways
README 文档
README
A simple Laravel implementation for all payment providers.
Installation
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"
List of contents
List of available providers
You can navigate to the Payment Providers Docs file to see their examples or click on the links below.
Usage
Pay Invoices
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', ]);
Verify Payments
The following example shows how to verify payments with any payment provider.
$payway = new PaypalGateway(); // OR any available payment class $payway->verifyPayment($request)
Available Providers
use Digitwires\Payway\Classes\PaypalGateway; use Digitwires\Payway\Classes\PaytabsGateway; use Digitwires\Payway\Classes\PaymobGateway;
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
If you discover a security vulnerability within this package, please email ahmed_noreldin@outlook.com
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-22