Open Payment Window
This step invokes the WeChat Pay payment window to proceed with the payment.
Upon completion, the user is redirected to the returnUrl specified during transaction creation.
Important
- The redirect to the
returnUrldoes not contain any response parameters. - Therefore, you must display a "Payment Processing" or "Waiting" screen to the customer until your server receives the asynchronous Payment Completion Notification (Webhook).
Request
Open the URL obtained from the Transaction Creation API via a browser (GET).
Request URL
GET {Payment Window URL}
Content-type: text/html
QR Payment (Native Payment)
- For QR Payment, use the
paymentPageUrlvalue returned in the Transaction Creation response to generate a QR code image. - The customer scans this QR code using their WeChat app to proceed with the payment.