forumpay/payment-gateway-php-client
最新稳定版本:v1.4.0
Composer 安装命令:
composer require forumpay/payment-gateway-php-client
包简介
Payment Gateway PHP Api Client
README 文档
README
PHP Client for interacting with Payment Gateway Webhost API
Install
Run composer require forumpay/payment-gateway-php-client
Usage
Example usage for getting currency list.
use ForumPay\PaymentGateway\PHPClient\PaymentGatewayApi; $paymentGatewayApi = new PaymentGatewayApi( $paymentGatewayUri, $apiUser, $apiSecret, $userAgentApplicationIdentifier ); try { $getCurrencyListResponse = $paymentGatewayApi->getCurrencyList('EUR'); } catch (ApiExceptionInterface $exception) { //TODO: handle the exception }
Where:
$paymentGatewayUri is Service URL as per API documentation
$apiUser and $apiSecret are credentials for Payment Gateway API Keys
$userAgentApplicationIdentifier represents the user agent application identifier for HTTP the client. Example: ('MyPaymentApp/1.0.0')
Available endpoints
- Ping
- GetRate
- GetRates
- StartPayment
- CheckPayment
- GetTransactions
- CancelPayment
- GetCurrencyList
- RequestKyc
- GetWalletApps
For corresponding methods refer to PaymentGatewayApiInterface in src/PaymentGatewayApiInterface.php
统计信息
- 总下载量: 4.75k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-11
