Supported workflows
Before you begin
Complete these steps before you send your first WeChat Pay payment through Nuvei:- Set up a Nuvei integration in your workspace. Contact your Payrails account team if Nuvei isn’t listed in your Payrails Portal yet.
- Ask Nuvei to enable WeChat Pay on your Nuvei merchant account.
- In the Payrails Portal, go to Settings → Integrations, open your Nuvei integration, select WeChat Pay under Payment methods, and save.
- Add WeChat Pay as a payment option in your workflow.
Request fields for Nuvei
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 the redirect to the Nuvei 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 Nuvei handles WeChat Pay
- Payrails sends WeChat Pay to Nuvei only for customers in China. A missing
meta.customer.country.codereturns an error, and any value other thanCNreturns an error. - Payrails sends WeChat Pay payments to Nuvei as a sale, so Nuvei captures the payment when the customer confirms it.
- Nuvei has no test environment for WeChat Pay. Test with low-value payments in live mode.