jitoot / airwallex-php-api
该包的最新版本(v1.0.1)没有提供许可证信息。
Airwallex支付API的PHP API
v1.0.1
2022-11-19 23:59 UTC
Requires
- php: >=5.6.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ^5
README
这是一个用于Airwallex API的PHP库,特别针对支付。目前该库仅实现了Airwallex API的以下三个组件:
- 收款人
- 支付意向
- 支付链接
有关详细信息,请参阅Airwallex API。
要求
PHP 5.6.0及更高版本。
Composer
通过Composer运行以下命令:
composer require jitoot/airwallex-php-api
入门指南
通用使用
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 ]
组件
###收款人
- 获取 Airwallex文档
- 创建 Airwallex文档
- getApiSchema Airwallex文档
- getFormSchema Airwallex文档
###支付意向
- 获取 Airwallex文档
- 创建 Airwallex文档
###支付链接
- 获取 Airwallex文档
- 创建 Airwallex文档