Payments
A payment represents a completed on-chain transfer of stablecoins from a customer. Payments are created when a customer completes a checkout or when a subscription fee is charged.
Payment Modes
When creating a checkout or subscription, you can specify a payment_method:
| Mode | Description |
|---|---|
direct | Funds are sent directly to your settlement address when the customer pays. Requires a signed request at checkout creation. Refunds via signed rescue request. |
two_step | Funds are held until you capture them to your settlement address or refund them to the customer via signed requests. Not available to fiat-settled businesses, which can only use direct: checkout creation answers 422 two_step_unavailable_for_fiat. |
Both payment modes require a signing key. See Signed Requests for setup instructions.
Two-Step Payment Flow
- Customer pays. Funds are held securely until you decide what to do with them.
- Capture. You call
signCapture()from the SDK and send the signed request to collect the funds. - Refund (if needed). You call
signRefund()with the customer’s address and send the signed request to return the funds.
The API verifies your signature before executing any fund movement.
Refunds
How refunds work depends on the payment mode:
-
Direct mode. You send a signed rescue request via the API using
signRescue()from the SDK to recover excess deposits or return funds. -
Two-step mode. You send a signed refund request via the API using
signRefund()from the SDK, and the funds are returned to the customer’s wallet address automatically. Rescue also works on two-step payments once escrow is confirmed, settled, or refunded.
For expired payments, Recover returns funds to the customer’s recorded deposit source — the server delegates internally to a refund when the payment is escrow_confirmed, or a rescue of the detected token when it is settled.
Need partial captures or partial refunds? Contact your account manager to discuss options for partial fund movements.
Pending Transactions
Rarely, Exodus sends a capture, refund, rescue, recover or settlement address update but cannot confirm it in time. The response is then a 504 with code: tx_pending, and data carries payment_id and tx_hash (chain and tx_hash for a settlement address update). Keep the tx_hash to follow the transaction.
- Capture and refund. Retry the same request after the transaction confirms, so that Exodus records the result. A retry after the signed
deadlineneeds a fresh signature. The retry returnstx_hash: null, so keep the hash from the 504. A capture retry that finds the escrow already captured answers 200, and Exodus sendspayment.settled, or starts the fiat settlement on a fiat-settled business. If the transaction fails or never goes through, the payment staysescrow_confirmedand you can send the request again. - Rescue. Do not resubmit. A retry before the signed
deadlineanswers 400Nothing to rescue at this escrowonce the transaction confirms. If the transaction fails or never goes through, Exodus records nothing and you can send a new rescue request. - Recover. Recover follows the refund rules for an
escrow_confirmedpayment and the rescue rules for asettledpayment. - Settlement address update. Do not resubmit. Exodus records the new address within about 15 minutes after the transaction confirms. Until then, the API can refuse charges and captures on that chain with a 503 whose
data.reasonissettlement_address_mismatch. Do not rotate the address again during this time. Checkout can refuse subscribes, and new payments wait until Exodus records the address. If the transaction fails or never goes through, the settlement address does not change and you can send a new request.
A refund or recover retry that finds the escrow already refunded answers 200 with status: "refunded" and tx_hash: null, and Exodus sends payment.refunded. For a recover retry, the webhook’s refund_destination is the payment’s recorded payer address. A refund or recover retry that finds the escrow already captured answers 409. Exodus then records the capture and sends payment.settled, or starts the fiat settlement on a fiat-settled business. The payment.settled webhook a capture, refund or recover retry sends carries deploy_tx_hash: null.
Settlement Address Checks
Before Exodus sends funds to your settlement address, it checks that the address on that chain is one Exodus has screened. The check runs on a capture, on a subscription charge, and on a customer’s subscribe on the hosted page. When the check fails, the API refuses the request and sends nothing. error.data carries business_id, settlement_address and reason:
| Response | data.reason | Cause | What to do |
|---|---|---|---|
422 cannot_process, code: flagged | settlement_hold | Your settlement address was changed outside Exodus, and the new address failed compliance screening. | Change the address to a different one through Update Settlement. The refusal stops when the new address passes screening and every chain pays it. |
503 service_unavailable | settlement_hold | Your settlement address was changed outside Exodus, and screening was not available at that moment. Exodus screens the address again every 15 minutes. | Retry later. The refusal stops when screening approves the address and every chain pays it. |
503 service_unavailable | settlement_address_mismatch | Your payment contract on this chain pays an address that Exodus has not screened yet, usually because the address was changed directly on the chain and not through Exodus. Exodus screens such a change within 15 minutes. | Retry later, or change the address through Update Settlement. After an Update Settlement that answered 504 tx_pending, only wait; see Pending Transactions. |
503 service_unavailable | settlement_address_check_unavailable | Exodus could not read the address on that chain, or has no payment contract on record for it, for example right after a signer change. | Retry later, and contact support if it continues. |
503 service_unavailable | manager_factory_mismatch | Charges and subscribes only. Your subscription contract on this chain points at a payment contract that Exodus has not screened, for example after a signer rotation that did not complete. | Retry the signer rotation, or contact support. |
While you change your settlement address through Update Settlement, a chain that still pays your previous address keeps working until every chain pays the new one. A payment funded while the check refuses stays client_deposit_confirmed and continues once the check passes. If a direct payment’s deploy deadline passes first, reopen it. During a refusal, the customer on the hosted subscribe page sees that you are not accepting subscriptions right now, not the API message.
Payment Statuses
| Status | Description |
|---|---|
client_deposit_pending | Checkout created; no deposit detected yet |
client_deposit_detected | Deposit seen on-chain; waiting for confirmations |
client_deposit_confirmed | Deposit confirmed; payment contract deploy queued |
client_deposit_expired | Checkout expired before the payment was funded. A partially paid payment expires too. A direct payment can also expire fully paid, when the covering deposit confirms less than 10 minutes before the checkout expires. |
escrow_confirmed | TWO_STEP: funds held in escrow, awaiting capture or refund |
settlement_pending | Funds reached the settlement provider on-chain; fiat payout to merchant in progress |
settled | Payment complete; funds transferred to your settlement address |
failed | Payment failed: deposit lost to a chain reorg, or the fiat settlement could not complete (see payment.settlement_failed) |
refunded | Full amount refunded to customer (two-step only) |
cancelled | Payment cancelled |
Reopening Expired Payments
A client_deposit_expired payment can be reopened under a new deadline instead of creating a new checkout. This works with or without a recorded deposit. A direct payment whose deploy deadline passed after it was funded (client_deposit_confirmed) can be reopened too.
The reopen moves an expired payment back to client_deposit_pending and sets the checkout’s expiry to the new deadline. The API then checks the deposits already recorded, so the status in the response can already show the payment as funded. A funded direct payment stays client_deposit_confirmed: the reopen only gives its contract deploy the new deadline, and it is refused while a deploy is still in flight. The deadline must be in the future and at most 24 hours ahead. Direct payments need a deadline at least 30 minutes ahead.
A reopen does not reset the window for a rescue. Rescue answers 422 scan_window_exceeded once the chain is more than 100,000 blocks past the block recorded when the checkout was created. On Arbitrum, that is about 7 hours. After that, a rescue on the reopened payment needs support.
Reopen is a signed request: send one merchant signature per entry of the payment’s payment_options, all under the same deadline. Direct payments sign a fresh deploy. Two-step payments sign a Reopen message. signReopen() from @exodus/checkout-signer 0.10.0 or later builds the whole body from the payment object, with a deadline two hours from now by default; see Signed Requests. A payment whose deposit addresses no longer derive from your current factory, after a signer rotation, is refused with factory_rotated.
A payment whose checkout was cancelled cannot be reopened. Reopen is also not available to fiat-settled businesses, to flagged payments, or to payments with a Solana option. No webhook event fires for the reopen itself. Later changes arrive as the usual deposit webhooks.
Available Endpoints
- Create Checkout creates a direct or two-step payment.
- Get Payment retrieves payment details.
- List Payments lists all payments.
- Capture Payment captures an authorized payment (two-step).
- Refund Payment refunds a payment (two-step).
- Rescue Funds recovers excess deposits or wrong tokens (direct and two-step).
- Recover Payment returns an expired payment to the customer (EVM only).
- Reopen Payment re-arms an expired payment under a new deadline (EVM only).
- List Settlement Addresses lists your on-chain settlement addresses.
- Update Settlement changes your settlement address.
