kallencode / laravel-icepay
0.2.0
2020-12-20 20:26 UTC
Requires
- php: ^7.4|^8.0
- icepay/api: ^0.0.1
- illuminate/contracts: ^8.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.3
This package is not auto-updated.
Last update: 2024-09-23 16:11:36 UTC
README
请在这里添加描述。请限制为一到两段。考虑添加一个小的示例。
安装
您可以通过composer安装此包
composer require kallencode/laravel-icepay
您可以使用以下命令发布配置文件
php artisan vendor:publish --provider="Kallencode\Icepay\IcepayServiceProvider" --tag="config"
这是已发布配置文件的内容
return [ 'api_key' => env('ICEPAY_API_KEY', 'xxxxx'), 'api_secret' => env('ICEPAY_API_SECRET', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'), 'completed_url' => env('ICEPAY_COMPLETED_URL', 'http://example.local/payment.php'), 'error_url' => env('ICEPAY_ERROR_URL', 'http://example.local/payment.php'), ];
用法
$checkoutResponse = Icepay::checkout([ 'Amount' => 1000, 'Currency' => 'EUR', 'Paymentmethod' => 'IDEAL', 'Issuer' => 'ABNAMRO', 'Country' => 'NL', 'Language' => 'NL', 'Description' => 'This is a example description', 'OrderID' => '1', 'Reference' => '1' ]) $paymentID = 123123; $paymentResponse = Icepay::getPayment($paymentID);
文档
https://icepay.com/app/uploads/ICEPAY-REST-API-Implementation-manual-v1.22.pdf
测试
composer test
变更日志
请参阅CHANGELOG以了解最近更改的详细信息。
贡献
请参阅CONTRIBUTING以获取详细信息。
安全漏洞
请查阅我们的安全策略了解如何报告安全漏洞。
致谢
许可证
MIT许可证(MIT)。有关更多信息,请参阅许可证文件。