hesabe/payment
最新稳定版本:v1.0.3
Composer 安装命令:
composer require hesabe/payment
包简介
Hesabe Payment Package allows you to use the Payment API to accept payments in Kuwait
README 文档
README
Hesabe Payment Package is a PHP package designed to integrate Hesabe Payment Gateway in your application in the easiest way possible.
Get in touch with Hesabe Support to get credentials in order to use this package.
Requirements
- Minimum PHP 7.0+ required
- Composer installed globally
Installation
-
Run the following command in the root of your PHP project:
composer require hesabe/payment -
Import the
Paymentclass in the file you want to use this package.use Hesabe\Payment\Payment; -
Initialise the
Hesabeinstance usingPaymentclass. You need to pass the credentials in the class parameters.$hesabe = new Payment( __SECRET_KEY__, __IV_KEY__, __ACCESS_CODE__, true );The last parameter is a boolean which indicates on which environment are you on.
true= Sandboxfalse= Production
By default, the value will be
false. -
Call the
checkoutmethod fromHesabeby passing the request parameters in an array. It will redirect you to the Hesabe Payment Page.$hesabe->checkout([ "merchantCode" => __MERCHANT_CODE__, "amount" => "1", "paymentType" => "0", "responseUrl" => "http://yourlink.com", "failureUrl" => "http://yourlink.com", "orderReferenceNumber" => "", "variable1" => null, "variable2" => null, "variable3" => null, "variable4" => null, "variable5" => null, "version" => "2.0", ]);These are the basic parameters which are passed to initiate a transaction, for more information about these parameters you may have a look here.
Credits
License
The MIT License (MIT). See the License File for more information.
统计信息
- 总下载量: 1.48k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-11-08