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 Checkout.com:- Set up a Checkout.com integration in your workspace. Follow the Checkout.com integration setup guide if you don’t have one yet.
- Ask Checkout.com to enable Alipay+ on your Checkout.com processing channel.
- In the Payrails Portal, go to Settings → Integrations, open your Checkout.com integration, select AlipayCN, AlipayHK, or both under Payment methods, and save.
- Add each Alipay code as a payment option in your workflow.
Request fields for Checkout.com
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.
This AlipayHK request sends the order lines that alipayHk requires:
Authorize request (AlipayHK)
alipayCn with an amount in CNY:
Authorize request (Alipay China)
success or error URL. Confirm the result through webhook notifications or the execution status before you fulfill the order.
How Checkout.com handles Alipay
- Payrails creates a payment setup at Checkout.com and confirms it for the Alipay method you selected. The confirmation returns the redirect to Alipay.
- Payrails sends only order lines of type
lineItem, or lines with no type. It skips tax, discount and shipping lines, and lines with no unit price or a zero quantity. - If Checkout.com reports that the Alipay method isn’t ready on your processing channel, the payment fails before Payrails redirects the customer.