Adding WeChat Pay to Your Website: Choose the Right Flow
Accept WeChat Pay from customers in China as an individual. No business paperwork; sign up and get started, then connect the right flow for desktop and mobile.
Open the same product link on a laptop, in a phone’s browser and inside a WeChat conversation. The page may look similar, but the customer’s next step can be quite different.
EPay lets individual sellers accept WeChat Pay from customers in China without business paperwork. You can start using the service right after signup, with Alipay and WeChat Pay channels ready in as little as one hour. The next step is choosing a checkout flow that fits your customers’ devices.
A laptop browser, a mobile browser and a link opened inside WeChat are different checkout environments. Choose the flow around the one your customers actually use.
Look at the environment, not just the screen size
| Where the customer opens your site | What to work out | What not to assume |
|---|---|---|
| Desktop browser | How the customer pays on a phone and how the desktop order page updates | Everyone returns to your website after payment |
| Mobile browser | How to continue payment on the same device and return to the order | Showing a QR code is enough for a convenient mobile flow |
| Browser inside WeChat | How payment starts there and how failures are explained | A flow that works outside WeChat behaves identically inside it |
A simple desktop-or-mobile check does not cover every case. A phone’s normal browser and the browser opened from a WeChat message share the same screen, but they are different environments. Know how customers reach your page, rather than only which device they own.
The diagram is a way to choose the checkout scenario. The specific payment modes available depend on what is enabled for the merchant account.
Describe the customer’s actions before discussing API names
You may hear names such as Native, H5 or JSAPI during integration discussions. These distinguish payment products and environments, but a product name alone does not describe the whole purchase. It also doesn’t tell you which capabilities your provider has enabled for your account.
Start with a plain description: “The customer chooses a product on a computer, pays on a phone, and sees the desktop order update.” Or: “Most customers open a shared product link inside WeChat and want to buy from there.”
The person arranging the integration can then confirm a suitable flow and configuration. If shared WeChat links are your main source of orders, mention that early. It is better to test that path before launch than to discover it through complaints that the payment button does nothing.
Preserve the purchase when the customer switches apps
Save the order before opening payment. After switching apps or returning to the page, the customer should still see the same purchase, amount and order status. Sending them back to the home page makes them work out whether they have already paid.
Useful page states include payment not started, confirmation pending, payment confirmed and checkout expired. Give each a clear next step. “We’re confirming your payment. Please wait” is more helpful than an unexplained spinner. When checkout expires, show how to return to the order and try again if it remains payable.
Those messages must follow the state your server knows. A closed window does not necessarily mean cancellation, and a browser return does not prove success. Use verified payment notifications or the documented status-query process to determine the actual result.
WeChat Pay’s official notification and order-query guide describes this server-side confirmation pattern, including querying when a notification has not arrived. When integrating through EPay, implement that flow using EPay’s interface specification rather than mixing direct WeChat API parameters into a provider request.
Test the route your customer will take
Begin the test at the actual entry point. Open the website on a computer, use the phone’s browser, or send yourself the test link in WeChat and open it there. A successful API response alone won’t reveal problems with app switching, page restoration or unclear instructions.
For each supported route, check that:
- The customer can see the purchase and amount clearly.
- Choosing WeChat Pay leads to an action they can complete.
- Your server handles the result even if the customer does not return.
- Reopening the order shows its existing state rather than creating another purchase.
- Incomplete payments and expired checkout sessions produce understandable messages.
If a route isn’t enabled, don’t show a button that cannot work in that environment. Provide an available alternative or a clear explanation while you arrange any further integration work.
Start with the path that matters most
For an individual seller beginning to serve customers in China, getting the main purchase path right is a manageable first step. Other supported entry points can follow. If you offer Alipay as well, both methods should connect to the same business-order records so support can trace a purchase without searching disconnected systems.
See the WeChat Pay channel page and create an EPay account to begin. For checkout design, read about desktop and mobile payment flows. If something already fails inside WeChat, use the payment-page troubleshooting guide to investigate the specific symptom.