Pay with Cashier (Website Browser) - On-Chain
Accept On-Chain cashier on your website by presenting payment method to the shopper.
Step 0. Authentication
How to obtain access token Authentication Reference
Step 1. Initialize a Payment Intent
POST /mch-api/v1/pa/payment_intents/create
- Example Request
{
"amount": "20",
"currency": "USDT",
"merchant_order_id": "P9297895081906",
"payment_method": {
"type": "on_chain",
"on_chain": {
"chain": [
"Ethereum",
"TRON",
"BSC"
],
"is_fee_paid_by_user": true
}
},
"description": "Online Payment",
"expire_time": 1800,
"notify_url": "https://put_your_site_here/example_url"
}
- Request
| REQUEST BODY | Details | Type | Required | Example |
|---|---|---|---|---|
| amount | Payment amount. This is the order amount you would like to charge your customer | string(32) | required | |
| currency | Amount currency | string(3) | required | USD |
| merchant_order_id | The order ID created in merchant's order system that corresponds to this PaymentIntent. Maximum length is 32. | string(32) | required | |
| description | The description of the order | string | required | |
| notify_url | The URL that is used to receive the payment result notification from CBTIS | string | optional | |
| payment_method | object | required | ||
| - type | Specific this payment channel (on_chain) | string | required | on_ramp |
| - on_chain | object | required | ||
| - - chain | Select the payment network supported by this payment. If left blank, all payment networks will be supported by default. Please note that different payment networks may charge different fees. | array | optional (default All chain) | |
| - - is_fee_paid_by_user | Set this as true if you're using fee paid by user flow. | boolean | optional (default false) |
- Example Response
{
"code": 0,
"data": {
"amount": "20",
"create_time": "2025-08-18T03:23:46+08:00",
"currency": "USD",
"merchant_order_id": "P9297895081906",
"next_action": {
"redirect_url": "https://api-live.aiscpay.com/mch-api/v1/pa/redirect/ccb3af9e4bae114682958fb114e2069b29bceceb5c364024d7c5042b1f0782bc",
"type": "redirect"
},
"order_id": "C96458626019020000",
"status": "PENDING"
},
"message": "ok",
"rid": "7fa547cb4c1e428fb996b2c31180dfa7"
}
You should redirect the shopper to the Alipay Plus cashier page with the next_action.url returned in the Payment response.
Step 2. Get payment notify
Once you fill in the notify_url field when creating an order, after the user completes the payment, our system will prompt you with information about the user's completed payment.
How to verify our notify message Webhook Verify Reference
- Example Webhook
{
"notify_type": "payment_success",
"data": {
"order_id": "C96245645019020000",
"merchant_order_id": "P9297895081903",
"order_amount": "20",
"order_currency": "USD",
"settle_amount": "18.0966",
"settle_currency": "USDT",
"create_time": "2025-08-18T03:23:46+08:00",
"pay_time": "2025-08-18T03:23:46+08:00"
}
}
Step 3. Retrieve a payment
Retrieve a Refund by ID.
POST /mch-api/v1/pa/payment_intents/query
- Example Request
{
"order_id": "P991289984923795789123",
"merchant_order_id": "P9297895081903"
}
- Request
| REQUEST BODY | Details | Type | Required | Example |
|---|---|---|---|---|
| order_id | Platform order id from payment request. | string(32) | conditional (required if merchant_order_id is empty) | |
| merchant_order_id | Merchant order id from your creation of payment. | string(32) | conditional (required if order_id is empty) |
- Example Response
{
"code": 0,
"data": {
"amount": "20",
"create_time": "2025-08-18T03:23:46+08:00",
"currency": "USD",
"merchant_order_id": "P9297895081906",
"order_id": "C96458626019020000",
"status": "PENDING"
},
"message": "ok",
"rid": "863b73d9d0db4b35a1827c6a4396e988"
}
- Explain of status
| STATUS CODE | Details |
|---|---|
| PENDING | The Payment is pending the final result from the provider. No further action is required. |
| SUCCESS | The Payment has succeeded. The payment transaction is complete. |
| EXPIRED | Payment canceled or timeout, user has not completed the payment and the order has been closed. |
| FAILED | Payment failed. You can contact our saler to the detail reason. |