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
Requires
- php: >=5.6.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ^5
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