hpez/gateway
Composer 安装命令:
composer require hpez/gateway
包简介
A Laravel package for using all Iranian payment gateways
关键字:
README 文档
README
A package for simplifying the integration with Iranian banks.
Supported gatways:
- MELLAT
- SADAD (MELLI)
- SAMAN
- PARSIAN
- PASARGAD
- ZARINPAL
- PAYPAL
- ASAN PARDAKHT
- PAY.IR
- SADERAT
- IRANKISH
- ZIBAL
Install
Step 1:
composer require hpez/gateway
Step 2:
php artisan vendor:publish --provider="Hpez\Gateway\GatewayServiceProvider"
Step 3:
Find the config file at config/gateway.php and change it according to your needs.
Usage example:
Redirecting to gateway:
$gateway = \Gateway::make(new \Hpez\Gateway\Mellat\Mellat()); $gateway->setCallback("your callback route"); $gateway->setCellNumber("09xxxxxxxxx"); // Optional $gateway->price($invoiceTotal)->ready(); $refId = $gateway->refId(); // شماره ارجاع بانک $transactionId = $gateway->transactionId(); // شماره تراکنش return $gateway->redirect();
Settling the transaction:
$gateway = \Gateway::verify(); $trackingCode = $gateway->trackingCode(); $refId = $gateway->refId(); $cardNumber = $gateway->cardNumber();
统计信息
- 总下载量: 94
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-28