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 WeChat Pay 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 WeChat Pay on your Worldpay entity.
- In the Payrails Portal, go to Settings → Integrations, open your Worldpay integration, select WeChat Pay under Payment methods, and save.
- Add WeChat Pay 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.
Payrails sends no customer details and no result URLs to Worldpay for WeChat Pay.
Authorize a WeChat Pay payment
Call authorize a payment withweChatPay as the paymentMethodCode. The payment stays pending until the customer scans the QR code and pays.
Authorize request
How Worldpay handles WeChat Pay
- Worldpay returns the QR code as an image, not as a redirect URL. There’s no redirect back to your site.
- Payrails doesn’t wait for a final result in the authorize response. The payment stays pending until Worldpay sends the result.