Skip to content
§ 00How it worksOne charge, start to finish

Six steps, from a merchant connecting their gateways to the webhook that tells your software the charge went through. Card and bank numbers are readable in only two places along the way: the customer's browser and Evervault Relay.

§ 07After the saleSettlement · refunds · switching

The charge is approved. Here's what keeps it straight.

Captures, voids and refunds
Always go to the connection that approved the sale, even after the merchant changes their routing.
ACH settlement and returns
ACH payments start pending. We check each gateway on a schedule and send transaction.settled or transaction.returned with the return code.
Gateways that confirm later
Some captures, refunds and voids confirm by webhook. They come back pending and finish with transaction.updated.
Switching gateways
New charges go to the new default. Saved cards keep working, and merchant-initiated charges carry the original network transaction ID across connections.
§ 08When things go wrongFailure behavior

Predictable when a gateway isn't.

Card networks limit retries and forbid some outright, so fallback is deliberately narrow. Every attempt is recorded on the transaction either way.

Idempotency and errors
What MerchSDK does in each failure case
WhenWhat happens
Soft declineWe try the next connection in the fallback order and record the attempt.
Hard decline or do-not-retry codeReturned as declined. Never retried on any connection.
Gateway error or timeoutWe try the next connection. We never retry the same connection for a call that moves money unless the gateway confirms the first attempt didn't go through.
Evervault unavailableCalls time out and fail fast with an error, so a checkout never hangs.
Same Idempotency-Key, same bodyYou get the stored response. Keys are kept for 12 hours.
Same Idempotency-Key, different body409 Conflict. The same happens if the first request is still running.
A gateway isn't able to do the callnot_supported_on_gateway, with nothing sent to the gateway.
Merchant disconnects a gatewayIts scheduled charges move to the default connection, or stop if there isn't one. History stays.
§ 09Early accessSandbox first

Build payments in once. Let your merchants bring their gateways.

We're onboarding software companies by invitation, sandbox first. Tell us what you build and which gateways your merchants use.