Skip to main content
Accept Alipay payments from customers in mainland China and Hong Kong with Checkout.com as the payment service provider (PSP). The customer selects Alipay, confirms the payment in Alipay, and returns to your site. Checkout.com processes two Alipay payment method codes:
  • alipayCn for Alipay customers in mainland China, in CNY.
  • alipayHk for 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:
  1. Set up a Checkout.com integration in your workspace. Follow the Checkout.com integration setup guide if you don’t have one yet.
  2. Ask Checkout.com to enable Alipay+ on your Checkout.com processing channel.
  3. In the Payrails Portal, go to Settings → Integrations, open your Checkout.com integration, select AlipayCN, AlipayHK, or both under Payment methods, and save.
  4. 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 with alipayHk 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)
For customers in mainland China, send alipayCn with an amount in CNY:
Authorize request (Alipay China)
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 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.
Last modified on October 2, 2026