# Merchant integration

Connect checkout, gateway events and enterprise records while keeping protocol evidence intact.

Canonical page: https://quantumchain.info/docs/merchants/integration

Category: Merchants · Reviewed: 24 November 2026

## 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.

[View the diagram or interactive example](<https://quantumchain.info/docs/merchants/integration#boundaries>). Visual-only examples are not reproduced in this text export.

## 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.

## Related reading

- [Payment requests](<https://quantumchain.info/docs/merchants/payment-requests>)
- [Refunds & reconciliation](<https://quantumchain.info/docs/merchants/refunds-and-reconciliation>)
- [Banks & payment providers](<https://quantumchain.info/docs/institutions/banks-and-payment-providers>)
- [QuantumChain whitepaper](<https://quantumchain.info/whitepaper>)
