Skip to main content

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 BODYDetailsTypeRequiredExample
amountPayment amount. This is the order amount you would like to charge your customerstring(32)required
currencyAmount currencystring(3)requiredUSD
merchant_order_idThe order ID created in merchant's order system that corresponds to this PaymentIntent. Maximum length is 32.string(32)required
descriptionThe description of the orderstringrequired
notify_urlThe URL that is used to receive the payment result notification from CBTISstringoptional
payment_methodobjectrequired
- typeSpecific this payment channel (on_chain)stringrequiredon_ramp
- on_chainobjectrequired
- - chainSelect 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.arrayoptional (default All chain)
- - is_fee_paid_by_userSet this as true if you're using fee paid by user flow.booleanoptional (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 BODYDetailsTypeRequiredExample
order_idPlatform order id from payment request.string(32)conditional (required if merchant_order_id is empty)
merchant_order_idMerchant 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 CODEDetails
PENDINGThe Payment is pending the final result from the provider. No further action is required.
SUCCESSThe Payment has succeeded. The payment transaction is complete.
EXPIREDPayment canceled or timeout, user has not completed the payment and the order has been closed.
FAILEDPayment failed. You can contact our saler to the detail reason.