jitoot/airwallex-php-api
最新稳定版本:v1.0.1
Composer 安装命令:
composer require jitoot/airwallex-php-api
包简介
PHP API for Airwallex Payment API
README 文档
README
This is a PHP library for the Airwallex API, specifically for payments. Currently the library only implements the following three components of the Airwallex API:
- Beneficiaries
- PaymentIntent
- PaymentLink
See the Airwallex API for more details.
Requirements
PHP 5.6.0 and later.
Composer
Run the following command via Composer:
composer require jitoot/airwallex-php-api
Getting Started
General usage:
require_once('vendor/autoload.php'); //pass in the client ID and API key from airwallex $airwallex = new \Jitoot\Airwallex\Client([ 'clientId' => 'sample_client_id', 'apiKey' => 'sample_api_key', 'production' => true, ]); //parameters $response = $airwallex->paymentIntent->create([ 'description' => 'example customer', 'email' => 'email@example.com', 'payment_method' => 'pm_card_visa', ]); //response array consists of response code and body //$response[0] = 200 //$response[1] = [ data ]
Components
###Beneficiary
- get Airwallex documentation
- create Airwallex documentation
- getApiSchema Airwallex documentation
- getFormSchema Airwallex documentation
###Payment Intent
- get Airwallex documentation
- create Airwallex documentation
###Payment Link
- get Airwallex documentation
- create Airwallex documentation
统计信息
- 总下载量: 391
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2022-11-19