1. Scenario overview
Online payment integration is the general way to connect a payment method. It covers WeChat, Alipay, and UnionPay, and the checkout types Native QR, JSAPI, H5, Mini Program, and app. The WeChat and Alipay payments page goes into those two channels. This page is about the integration flow and what payment triggers: the callback, order checks, plan provisioning, and resuming a SIM.
When the user pays, the callback checks the order, provisions the plan onto the SIM, and resumes a SIM that was suspended for non-payment. Payment takes effect at once. Reconciliation, refunds, and retries are part of running payments day to day.
2. Core capabilities
Several channels and methods
Channels: WeChat Pay, Alipay, and UnionPay, chosen for the business and able to run together, so the user picks one. Methods: Native QR on a PC, JSAPI inside a WeChat official account, H5 in a mobile browser, Mini Program, and in-app payment. Each place the user pays gets the method that fits.
Callbacks that drive the business
A callback updates the order, provisions the plan onto the SIM, and resumes a SIM suspended for non-payment. Callbacks are idempotent, so a repeat does not provision the plan twice. An async callback plus a sync status check keeps the order and the payment in the same state.
Reconciliation and refunds
Pull the channel’s statement and match it to platform orders line by line. Differences can be exported for review. A refund can be full or partial, and it goes back to the original payment method. That keeps the money safe and the books in order.
Retries when something fails
A failed payment or a callback that times out can be retried on a schedule you set, until both sides agree. A network timeout or a missed callback can retry on its own or wait for someone to step in, so more payments complete.
3. Payment flow
4. This page and WeChat and Alipay payments
Payment integration and WeChat and Alipay payments cover different parts of the same job. The differences:
| Dimension | Online payment integration | WeChat and Alipay payments |
|---|---|---|
| What it covers | The integration flow and what payment triggers | How the two channels are connected |
| What it does | Callback, plan provisioning, resume, reconciliation and refund | WeChat and Alipay methods, revenue sharing, statement parsing |
| Emphasis | Business logic and automation | Channel detail and revenue-share setup |
| Typical ask | Takes effect on payment, idempotent, retry on failure | Two channels, revenue sharing, statement parsing |
They fit together. This page is the business logic and the flow. The WeChat and Alipay page is the channel detail and the revenue-share setup.
5. Typical use cases
- Paying for a plan: The user picks a plan and is sent to pay. On success the plan is provisioned onto the SIM, in step with plan subscription and order management.
- Paying to resume a suspended SIM: A user whose SIM was suspended pays, the callback resumes it, and that ties to suspend and resume.
- Renewal and upgrade: A renewal and an upgrade both go through payment, and they take effect when the payment succeeds.
6. What you gain
Payment integration on the SimtoLink IoT Cloud Platform gets you onto the payment methods your customers already use. Payment drives the business without a person in the middle. Reconciliation and refunds keep the money safe and the books in order. Idempotent handling and retries raise the share of payments that complete, and both sides end in the same state.
7. Implementation notes
Connect WeChat and Alipay first, since that covers most users. Make callbacks idempotent and retry failures. Reconcile on a schedule so the money matches. Refunds should go back through the channel to the original method. Tie this to order management, suspend and resume, and plan subscription, so payment takes effect at once. SimtoLink can help with the integration and the reconciliation setup.