aliwebto / easy-payment
适用于伊朗的 Laravel 支付包
v1.0.0
2023-07-29 16:09 UTC
Requires
- php: ^7.4|^8.0
- illuminate/support: ^8.0|^9.0|^10.0
Requires (Dev)
- laravel/pint: ^1.10
- orchestra/testbench: ^6.28
- pestphp/pest: ^1.23
- phpunit/phpunit: ^9.0
README
这里应该放置您的描述。尽量限制在一两段之内,并可能提及您支持的 PSRs,以避免与用户和贡献者产生混淆。
安装
您可以通过 composer 安装此包
composer require aliwebto/easy-payment php artisan vendor:publish --provider="Aliwebto\EasyPayment\EasyPaymentServiceProvider" php artisan migrat // set your configs to config/easy-payment.php
使用方法
// payable model - use Payable trait in your payable model Ex: invoice. use \Aliwebto\EasyPayment\Payable; // you have to make a payable model like invoice and relate it to users . then create invoice and pass to easy payment // create transaction and get data use Aliwebto\EasyPayment\EasyPayment $payable = \App\Models\Invoice::find(1); $amount = $payable->price; $description = "description of payment"; $easyPayments = EasyPayment::pay($payable,$amount,$description); return redirect($easyPayments["pay_url"]); // check transaction is paid use Aliwebto\EasyPayment\EasyPayment $payable = \App\Models\Product::find(1); $payable->isPaid(); // bool
变更日志
有关最近更改的更多信息,请参阅 CHANGELOG。
贡献
有关详细信息,请参阅 CONTRIBUTING。
安全性
如果您发现任何与安全性相关的问题,请通过电子邮件 aliwebto@gmail.com 而不是使用问题跟踪器。
致谢
许可证
MIT 许可证 (MIT)。有关更多信息,请参阅 许可证文件。
Laravel Package Boilerplate
此包是使用 Laravel Package Boilerplate 生成的。