Supported workflows
Before you begin
Complete these steps before you send your first WeChat Pay 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 support to enable WeChat Pay on the processing channel of your Checkout.com account.
- In the Payrails Portal, go to Settings → Integrations, open your Checkout.com integration, select WeChat Pay under Payment methods, and save.
- Add WeChat Pay 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 a WeChat Pay payment
Call authorize a payment withweChatPay as the paymentMethodCode. The response includes a redirect to a Payrails page that shows the WeChat Pay QR code.
Authorize request
success or error URL. Confirm the result through webhook notifications or the execution status before you fulfill the order.
How Checkout.com handles WeChat Pay
- Checkout.com returns a WeChat link, not a page a browser can open. Payrails turns it into a Payrails-hosted page that shows the link as a QR code, and returns that page as the redirect.
- Payrails sends only line items to Checkout.com. Tax, discount and shipping lines in
meta.order.linesare left out. - Refunds use the standard Checkout.com refund flow.