Alipay payment method codes
Each PSP accepts its own Alipay payment method code. Send the code that matches the PSP that processes the payment:
To offer Alipay through Checkout.com or Worldpay to customers in both regions, enable
alipayCn and alipayHk as two separate payment methods on the integration.
This page covers online payments. In-person Alipay payments on Adyen payment terminals use a separate alipayQRCode code and aren’t covered here.
How an Alipay payment works
Alipay is a redirect payment method:- The customer selects Alipay at checkout.
- Payrails returns a redirect URL from the PSP, and the customer goes to Alipay.
- The customer logs in and confirms the payment in the Alipay app or on the Alipay website.
- Alipay sends the customer back to your
returnInfoURL. - Payrails receives the final result from the PSP and updates the payment.
Supported currencies and countries
The presentment currency depends on the PSP and the payment method code:- Checkout.com and Worldpay:
CNY(Chinese yuan) foralipayCn, andHKD(Hong Kong dollar) foralipayHk. - Stripe:
AUD,CAD,CNY,EUR,GBP,HKD,JPY,MYR,NZD,SGD, andUSD. - Nuvei: the currencies enabled for Alipay on your Nuvei account.
Integrate Alipay
Choose the PSP that processes Alipay for you. Each guide covers the PSP-side setup, the Payrails configuration and the request fields that PSP requires.Checkout.com
Alipay via Checkout.com
Nuvei
Alipay via Nuvei
Stripe
Alipay via Stripe
Worldpay
Alipay via Worldpay
Compare PSPs
Alipay is single-use with every PSP: the customer confirms each payment, and Save Instruments and merchant-initiated transactions (MIT) aren’t available.Ways to integrate Alipay
- Payrails SDK: the Web SDK shows Alipay when your workflow returns it as a payment option, and redirects the customer to Alipay. To control how the redirect opens, listen for the
actionRequiredevent. - Payrails API: call lookup payment options, then authorize with the
paymentMethodCodeyour PSP expects. Each PSP guide lists the code and themetafields that PSP requires.
success URL as proof of payment.