Learn how to accept Alipay payments.

Alipay is the most widely used third-party online payment service provider in China. This makes Alipay one of the key payment methods that you should offer if you want to expand your business to reach Chinese customers both at home and abroad. Customers can use Alipay to pay through your website or mobile app.

Alipay wallet holders can pay on the web or on mobile using their login credentials or their Alipay app. Funds are drawn from the customer’s bank, card, or prepaid Alipay account and because payments are authenticated with the customer’s login credentials, dispute rates are very low.

Payment type Wallet
Markets China
Customer currencies CNY
Processing currencies AUD, CAD, CHF, CNY, EUR, GBP, HKD, JPY, NZD, SGD, USD
Settlement currencies EUR
Refunds Yes

Step 1. Make a transaction request

From your server, make a POST /payment_preauthorize request.


Include in request:

  • merchantid: The merchant identification number.
  • orderid: The field orderid is optional and exclusively for the merchant's convenience.
  • amount: The amount field contains the transaction’s total amount. This is the amount that will be transmitted to the authorizing system.
  • currency: The currency field contains the alphanumeric currency code for the transaction, according to ISO 4217, e.g. EUR/GBP/USD/AUD/CAD/HKD/SGD.
  • payment_method: The payment method id - 5.
  • signature: The signature field contains a 40-figure hexadecimal value. This signature value is a checksum designed to protect the merchant account from unauthorized access.
  • bankcountry: Customer country in ISO Alpha-2 format. Supported countries: CN.
  • email: The customer's email address.
  • custom2: The name of payment method - alipay.
  • accountname: Accountname: 3 to 100 Characters
  • mobileview: This parameter is optional and the value will be yes
  • firstname: First name of the customer.
  • lastname: Last name of the customer.
    You can see a full list of parameters in Pre-Authorization .

Request example


Step 2. Handle the redirect

To complete the payment, you need to redirect the customer to the correct URL in the response.



Notification example

errormessage=&errorcode=0&orderid=743222831" "https://www.notification_url"


url_return and notification_url should be provided by you to payabl. technical team.

Notification example with additional account parameters.

security=19667fb6d9d2f3c8457e29d949f72319a9986b88b0be47050d9fc49f746d279b&orderid=6eebd443fb407e3f35f0&errorcode=0" "https://www.notification_url"


Alipay supports refunds and can be initiated only on a successful captured transaction.
The request will send a credit note to the authorization system after the customer has already been charged. The refund amount will be credited to the customer and the merchant’s account will be charged.

The refund can be done in two ways:

  • Through API integration
  • Through payabl. dashboard

If you have API integration, you can check more in our documentation Refund.