alipayCnfor Alipay customers in mainland China, in CNY.alipayHkfor AlipayHK customers in Hong Kong, in HKD.
Supported workflows
Before you begin
Complete these steps before you send your first Alipay payment through Worldpay:- Set up a Worldpay integration in your workspace. Contact your Payrails account team if Worldpay isn’t listed in your Payrails Portal yet.
- Ask Worldpay to enable Alipay CN, Alipay HK, or both on your Worldpay entity.
- In the Payrails Portal, go to Settings → Integrations, open your Worldpay integration, select Alipay CN, Alipay HK, or both under Payment methods, and save.
- Add each Alipay code as a payment option in your workflow.
Request fields for Worldpay
Send these fields in the authorize request, in addition to the standard authorize fields. Payrails checks Required fields and returns an error when one is missing. Fields required by the PSP pass the Payrails checks but the PSP can decline the payment without them.Authorize an Alipay payment
Call authorize a payment withalipayHk or alipayCn as the paymentMethodCode. The response includes the redirect to Alipay.
Authorize request (AlipayHK)
alipayCn with an amount in CNY and leave out the billing country.
After the customer confirms the payment, Alipay returns them to your success or error URL. Confirm the result through webhook notifications or the execution status before you fulfill the order.
How Worldpay handles Alipay
- Payrails sets the Alipay page language to Chinese (
zh) foralipayCn. - Payrails doesn’t check the currency or country before it sends the request. Worldpay rejects a request with a currency or country that doesn’t match the Alipay method.
- Refunds aren’t available for Alipay payments through Worldpay.