Payment, Shipping, and SMS Around One Store
Keeping checkout decoupled from external payment, shipping, and SMS providers on a live .NET e-commerce project, then connecting the store as a super-app mini-app.
From December 2018 to October 2024 I worked, alongside my primary employment, on live .NET e-commerce projects. The stores were already serving real customers. My job was to keep checkout and operations moving: new features, admin screens, REST APIs, and the external providers every order depends on.
Checkout had to stay dependable even when third-party gateways changed payloads, slowed down, or added new fields. Three external provider categories had to sit cleanly outside the core order pipeline.
Keep every external provider behind a small boundary
- Payment. A payment module guides the customer through the external provider and returns a normalized result that the order record can store and audit.
- Shipping. A shipping integration quotes delivery rates before confirmation and, after the order is placed, reports parcel tracking status back onto that same order.
- SMS. An SMS integration notifies customers on order state transitions. Messaging is a side effect of order state, never a second checkout path.
Checkout code calls small domain-facing interfaces rather than raw third-party HTTP clients. When a provider changes endpoints or credentials, the change stays inside one adapter module instead of leaking across controllers and views.
One order record as the source of truth
External payment callbacks, courier webhooks, and SMS delivery statuses all arrive asynchronously and sometimes out of order. Treating any provider dashboard as authoritative quickly splits customer support from finance.
The store's own order record remained the single source of truth. Providers reported status transitions back into that record, where state transitions could be validated and audited consistently.
Reuse the super-app mini-app contract instead of building a bespoke bridge
One of the e-commerce stores was later connected as a mini-app inside a financial super-app. Rather than carving a private integration path into internal payment services, the store integrated through the super-app's standard mini-app contract.
That decision is where the e-commerce work and super-app engineering met. Reusing the partner contract kept security boundaries intact, avoided one-off maintenance debt, and validated the exact developer experience other mini-app teams relied on.
Three rules that held up over six years
- Isolate each provider behind an adapter boundary. Checkout depends on a small interface, never on a vendor SDK directly.
- Keep the order record authoritative. Providers push status updates into the order; they never become a competing ledger.
- Adopt the shared mini-app contract when embedding inside a super-app. A custom shortcut costs more to maintain and teaches the platform nothing.
I tested, deployed, and resolved defects across live customer checkouts. Provider names, internal plugin source, and store screenshots remain private.