Airwallex
Quick Start
- Sign up at airwallex.com and obtain API credentials
- Create a terminal in the Admin Console with the parameters below
- Start processing — the adapter is pre-built and ready to use
Overview
Airwallex — Payments (global processor)
| Provider ID | airwallex |
| Category | Card Processors |
| Website | airwallex.com |
Supported operations: Create + Confirm Payment Intent (payments_charge) Status (payments_status) Refund (payments_refund)
Authentication
Method: Bearer Token (two-stage)
Step 1: Retrieval token
POST /api/v1/authentication/login
Content-Type: application/json
x-api-key: {api_key}
{}
Response:
{
"token": "eyJ...",
"expires_at": "2024-01-15T11:30:00Z"
}
Step 2: Usage token
Authorization: Bearer {token}
Configuration
Required Parameters
| Parameter | Description |
|---|---|
base_url | Base API URL (default) |
api_key | API Key for receipt token |
Status Mapping
| Provider Status | 4pay Status | Description |
|---|---|---|
SUCCEEDED | Charged | |
FAILED | Failure | |
CANCELLED | Failure | |
REQUIRES_CUSTOMER_ACTION | AuthenticationPending | |
(other) | Pending | |
SUCCEEDED | Refunded | |
FAILED | Failure | |
(other) | PartiallyRefunded |
Testing
Sandbox URL
https://api-demo.airwallex.com/
Test Cards
| Card | Number | Exp | CVV | Result |
|---|---|---|---|---|
| Visa | 4012 0000 0000 1003 | any future | any 3 digits | Successful payment |
| Visa (3DS) | 4012 0000 0000 1011 | any future | any 3 digits | Requires 3D Secure |
| Visa (decline) | 4000 0000 0000 0069 | any future | any 3 digits | Declined |
| Mastercard | 5425 2334 3010 9903 | any future | any 3 digits | Successful payment |
| Amex | 3400 0000 0000 009 | any future | any 4 digits | Successful payment |
API Reference
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/authentication/login | |
| POST | /api/v1/pa/payment_intents/create | |
| POST | /api/v1/pa/payment_intents/{id}/confirm | |
| GET | /api/v1/pa/payment_intents/{id} | |
| POST | /api/v1/pa/refunds/create | |
| GET | /api/v1/pa/refunds/{id} |