alipayCnfor Alipay customers in mainland China, in CNY.alipayHkfor AlipayHK customers in Hong Kong, in HKD.
Supported workflows
| Workflow | Supported |
|---|---|
| Payrails SDK | ✔ |
| Payrails API | ✔ |
| Delayed / Manual Capture | ✖ |
| Instant Capture | ✔ |
| Cancel / Void | ✖ |
| Refund / Reverse | ✔ |
| Save Instruments | ✖ |
| Merchant Initiated Transaction (MIT) | ✖ |
Before you begin
Complete these steps before you send your first Alipay payment through Worldpay:- Set up a Worldpay integration in your workspace. Follow the Worldpay integration setup guide if you don’t have one 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. Required fields must be present for the payment to succeed. Payrails sends Optional fields to the PSP when you include 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.