Before self-hosting a network service, distinguish the panel, nodes and orders
Self-hosting is often used to describe building a network access service for sale. Separate four layers: nodes forward traffic, the panel manages users and plans, subscriptions distribute client configuration, and orders record the amount paid and service time added. Mixing them together makes later reconciliation unreliable.
Contents
What are the four layers?
- Node: a server that forwards traffic. It does not know your Alipay order number.
- Panel: stores users, plans, expiry times and traffic allowances.
- Subscription: the client fetches currently usable configuration. A configuration change does not mean the previous payment can extend service again.
- Order: the merchant order number in the payment system. Add time to the associated user only when that specific payment has not already been applied.
First decide what not to rewrite yourself
Use an existing panel or build your own. In either case, never put payment keys in the web frontend or let node servers change order amounts directly. Keep pricing, order numbering and service extensions on a backend you control.
Before launch, complete a small payment cycle: create an order, confirm payment, extend expiry once and ensure the same notification does not extend it again. If the final check fails, do not sell long-term plans yet.
Stability and payment are separate concerns
When a node is unreachable, users may feel they paid for something unusable. The cause could be connectivity or an unapplied service extension. First inspect the order state, then the panel expiry time and finally the node. For channel fluctuations, see handling orders during channel fluctuations。
Choose WeChat or Alipay according to customer preferences. See the product details in wenfupay.com/product.html。
Confirm integration for your business scenario
Describe your products, order volume, payment methods and settlement needs to confirm the APIs, movement of funds and exception handling item by item.
Contact 稳付pay ↗