jitoot/airwallex-php-api

该包的最新版本(v1.0.1)没有提供许可证信息。

Airwallex支付API的PHP API

v1.0.1 2022-11-19 23:59 UTC

This package is auto-updated.

Last update: 2024-09-20 04:03:50 UTC


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 ] 

组件

###收款人

###支付意向

###支付链接