MERCHANTS · DESIGN GUIDE
Merchant integration
Connect checkout, gateway events and enterprise records while keeping protocol evidence intact.
Connect services without merging their authority
The gateway orchestrates checkout and normalizes status. The connector translates that model into a PSP or accounting workflow. Neither replaces the protocol as the source of chain truth. Expand the boundaries below to inspect each responsibility.
01Shop / POSOrder and customer context+
Creates or resolves the request and displays its status. A browser return is not payment evidence.
02Merchant gatewayRequest and lifecycle tracking+
Coordinates checkout, authenticated notifications, exceptions and refunds. Retains canonical transaction and receipt references.
03PSP / accounting connectorExternal posting and payout mapping+
Maps records into enterprise systems without turning pending reserves into completed payouts.
04Protocol evidenceTransactions, receipts and finality+
Anchors successful chain outcomes independently of the gateway’s display or message delivery.
Responsibility boundaries, not a production API or a requirement that every deployment uses all these services.
Keep the reference chain intact
Mappings must preserve distinct meanings. A pending settlement reserve cannot become a completed bank payout simply because the external system has a shorter list of status codes.
| Source reference | Downstream relationship |
|---|---|
| Request ID | PSP payment or checkout reference |
| Order reference / optional invoice | Merchant accounting record |
| Transaction and receipt IDs | Evidence for protocol outcome |
| Settlement / payout batch | Posting and disbursement record |
| Refund ID | New action linked to the original payment |
Treat webhooks as authenticated notifications
Notification arrival alone does not prove finality. The exact signature format, clock tolerance, retry schedule and event schema still need an implementation reference. No production webhook endpoint is published by this guide.
- Verify the payload under the chosen authentication profile.
- Validate timestamps, context and replay-resistant identifiers.
- Persist processing state and make duplicate handling idempotent.
- Resume missed events and query authoritative status when needed.
- Retain correlation IDs and avoid putting secret or unnecessary personal data in logs.
Expose fees, splits and reserves explicitly
Fee sponsorship, split settlement and delayed release are possible integration profiles. The request and approval must identify the applicable policy and its authorization.
A split allocates value to defined beneficiaries; a reserve constrains availability. Neither creates additional money. Do not infer a universal fee percentage, payout delay or reserve requirement from the architecture.
Verify the complete integration before use
| Test case | Expected discipline |
|---|---|
| Request tampering | Reject altered merchant, destination or material terms |
| Callback without settlement | Keep the payment unconfirmed |
| Duplicate or out-of-order events | Preserve one effect and canonical state |
| Network interruption | Recover the existing request and transaction |
| Partial refund | Track remaining refundable amount and original linkage |
| Payout failure | Preserve the obligation and show its separate status |
A design guide, not a released API
The source describes intended API surfaces and deployment profiles. This page provides no runnable endpoint, SDK version, production credentials or guarantee of processor compatibility.
Verified schemas, test-network access, integration examples and operational procedures should accompany a software release. A connector diagram does not establish an active banking partnership or acquiring arrangement.