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.
PHP 5.6.0 and later.
Run the following command via Composer:
composer require jitoot/airwallex-php-api
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 protected]',
'payment_method' => 'pm_card_visa',
]);
//response array consists of response code and body
//$response[0] = 200
//$response[1] = [ data ]
###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