承接 forumpay/payment-gateway-php-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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')

Payment Gateway API Keys

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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-11