AirPay
Quick Start
- Sign up at airpay.co.id 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
AirPay payment integration
| Provider ID | airpay |
| Category | Local Payment Methods |
| Website | airpay.co.id |
Authentication
- Method: Bearer token
- Base URL:
https://api.airpay.co.id/merchant/v1
Configuration
Required Parameters
| Parameter | Description |
|---|---|
api_key | API Key |
secret_key | Secret Key |
merchant_id | Merchant ID |
Example Configuration
{
"provider": "airpay",
"provider_params": {
"api_key": "your_api_key_here",
"secret_key": "your_secret_key_here",
"merchant_id": "your_merchant_id_here"
}
}
Status Mapping
| Provider Status | 4pay Status | Description |
|---|---|---|
paid | charged | |
pending | charging | |
refunded | refunded | |
failed | rejected |
API Reference
| Method | Endpoint | Description |
|---|---|---|
| POST | /payment/create | |
| GET | /payment/#{URI.encode(payment_id)} | |
| POST | /payment/#{URI.encode(payment_id)}/refund |