Three prerequisites, all mandatory
The domain must be filed in mainland China, which the platform checks automatically. It must support HTTPS with a complete certificate chain — self-signed certificates will not work. The certificate must be valid; on the expiry day every request fails.
A common mistake is entering an IP or a host with a port. Legal domains take the domain only, without scheme, port or path.
The two domain types
Server domains cover API requests and file transfer; business domains cover pages loaded in webview and require a verification file on the target site. Putting a web page address under server domains simply will not work.
There is a cap on how many domains you can configure, so consolidate APIs or add a gateway layer. Plan for this at design time rather than at launch.
Why changes do not take effect
The developer tool caches configuration, so recompile and clear cache. Or the change was made to the trial build while the release build still has the old settings. Or the device is on a corporate network that cannot reach the public domain.
We help with configuration and certificate chains, including filing status checks, certificate deployment and gateway routing. The filing itself is reviewed by the authorities.
FAQ
Must the domain be filed before configuration?
For mainland entities on mainland servers, configured domains generally need filing. Unfiled domains may fail in the production environment even if configuration succeeds.
Can an IP address be used for APIs?
No. Legal domains must be domain names. You can point a domain at that IP, but the HTTPS certificate must match the domain.
Can one domain serve several mini programs?
Yes, domains are not exclusive. Ensure proper authorisation and isolation between programs, and never share the same secret across them.
Related questions
Further reading
- WeChat Pay Merchant Setup Service details
- Debugging WeChat Pay Callbacks: Did the Request Arrive
- What Are the Common API Configuration Errors in Official Account Development? A Checklist Approach
- What to Do When Alipay Merchant Setup Documents Are Rejected? Correction Tips and Document Checklist
- Why WeChat Pay Settlements Get Delayed: Checking Order, Records and Bank Side
Sources & References
The following are public sources. Always check the latest requirements on the official authority or platform page.
