jitoot/airwallex-php-api

There is no license information available for the latest version (v1.0.1) of this package.

PHP API for Airwallex Payment API

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

This package is auto-updated.

Last update: 2025-04-20 05:08:06 UTC


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

###Payment Intent

###Payment Link