Prerequisites
Before you start integrating WeChat Pay, make sure you have the following in place.
What you need
| Artifact | Where to get it |
|---|---|
WeChat Pay-enabled terminal (terminalId) | Provided by DNA Payments. WeChat Pay activation on the terminal is handled by DNA Payments during onboarding. Contact your account manager if WeChat Pay is not yet enabled on your terminal. |
OAuth client credentials (clientId / clientSecret) | Provided by DNA Payments after merchant onboarding |
| HTTPS-enabled web server | Your hosting |
The OAuth credentials are used to generate an access token on your backend: see Authentication for the full flow.
What DNA Payments handles for you
- All WeChat Pay-side setup: merchant account, gateway configuration, server-side communication with the WeChat Pay backend.
- Generation of the payment order on the WeChat Pay side and the resulting QR code returned to the component.
You only need a DNA Payments terminal with WeChat Pay enabled and a public HTTPS-hosted page.
With these prerequisites in place, you are ready to move on to Integration.