Skip to main content

WeChat Pay Integration

WeChat Pay Logo

This guide walks you through integrating the DNA Payments WeChat Pay Component (a QR-based WeChat Pay button rendered by our SDK) into your web application.

The WeChat Pay merchant account, gateway configuration, and the server-side communication with the WeChat backend are handled by DNA Payments. You only need a terminal with WeChat Pay enabled and a public HTTPS-hosted page.

Looking for Alipay or Alipay+?

If you want to accept Alipay or Alipay+ instead of (or alongside) WeChat Pay, use the dedicated Alipay or Alipay+ component. The integration steps are the same as on this page.

Where to go next

  1. Prerequisites: what to set up before integrating.
  2. Integration: full step-by-step guide and API reference.
  3. Full Example: copy-paste-ready HTML.
  4. Testing: sandbox scenarios and expected events.
  5. Handling Error Codes: every error the component can emit.
  6. Deployment: go-live checklist.