Card payments (SET Connect)
Status: current as of 2026-11-18.
SET API (business account) · Live since 2026-11-09
A merchant with a SET Connect account takes card payments (and Stripe bank debits) through its embedded SET payment form, or through a hosted checkout it opens with its key. Each payment is a direct charge on the merchant's own Stripe account, with SET's fee as the application fee. SET's fee on each card payment is set by the merchant's card volume so far that calendar month (UTC): 1.02% under $1M, 0.98% from $1M to $7M, 0.92% from $7M to $15M and 0.85% from $15M (owner decision 2026-11-12; from 2026-11-11 to 2026-11-12 it was zero). The whole payment takes the rate of the band the month's volume is in before it, and setFee shows the amount. SET records each payment in the merchant's SET records next to its stablecoin and bank payments.
Take a payment
POST /v1/card_checkouts with {amount, successUrl, cancelUrl, description?, reference?, invoice?} returns a Stripe-hosted Checkout url for one USD payment (0.50 to 999,999.99) and the setFee. reference goes to Stripe's metadata only; SET does not store it. Send the same Idempotency-Key again and you get the same Checkout back.
Pay an invoice by card
Add invoice (an inv_… id) to POST /v1/card_checkouts and the checkout pays that invoice. The invoice must be your own, in the same mode as the key, open or short, and in USD, and amount must be exactly what is still due on it. The answer carries invoice.
| Status | Code | When |
|---|---|---|
| 400 | invoice_invalid | invoice is not an invoice id |
| 404 | invoice_unknown | No such invoice for your business (another business's invoice answers this too) |
| 409 | invoice_not_open | The invoice is not open or short |
| 409 | invoice_currency_not_card | The invoice is not in USD; card checkouts are USD. Link it instead (POST /v1/payment_links) to be paid its own way |
| 409 | invoice_amount_mismatch | amount is not what is still due |
An invoice's payment link (POST /v1/payment_links {invoice}) takes the amount still due and the invoice's currency. If you state amount or currency as well, they must match (409 invoice_amount_mismatch, 409 invoice_currency_mismatch). Asking for card: true on an invoice that is not in USD answers 409 invoice_currency_not_card instead of quietly offering no card.
When the invoice is marked paid. Only from Stripe's verified report that the payment succeeded, and atomically with it: the card payment's record, the receipt journal entry, the invoice's received total and state, the match and their events (payment.matched, invoice.paid, invoice.short or invoice.over, journal_entry.created) are written in one database transaction, or none of them is. Repeated or concurrent reports of the same payment settle the invoice once. A payment to an invoice that is already paid is booked as an overpayment (over) and never moves it back; a void invoice is never settled.
Read payments
GET /v1/card_payments lists payments with state (pending, processing, succeeded, failed, canceled), amount, amountRefunded, setFee, setFeeRefunded, netBeforeStripeFees, disputeStatus, source (pay_form or checkout) and checkoutSession. GET /v1/card_payments/{pi_…} returns one. Events: card_payment.<state>, card_payment.refunded, card_payment.fee_refunded and card_payment.dispute.<status>.
Only payments SET started are recorded. The merchant's other Stripe business is its own and is never read into SET.
Refunds
POST /v1/card_payments/{pi_…}/refunds with {amount?, reason?} refunds what is left, or amount. SET's fee comes back in proportion. If the merchant refunds in its own Stripe Dashboard instead, SET returns the matching part of its fee afterwards. A payment made from 2026-11-11 to 2026-11-12 carried no SET fee and has none to return.
A lost dispute does not currently return a SET fee.
Monthly report
GET /v1/reports/monthly adds cardPayments per currency: payments, succeeded, gross, refunded, SET's fee, the fee refunded and net, net before Stripe's fees, disputes and disputes lost. Stripe's own processing fees are charged to the merchant's Stripe account and are not included.
Journal entries
Each succeeded card payment is booked as a balanced card_receipt journal entry, and each refund as a card_refund entry, in GET /v1/journal_entries and the accounting sync; SET Close shows each payment's gross, SET's fee and net with its receipt entry. A refund entry that was not written when the refund was first reported is written on the next report, once; a SET fee returned later on its own gets its own card_refund entry.
Related
Changes
- 2026-11-18: OpenAPI, Postman and docs re-synced from the wallet at; Crypto Suite /v1 calls follow the wallet's marks.
- 2026-11-16: The modernized API Reference, the sandbox-key form, Direct Deposit without a revenue share.
- 2026-11-12: Prices of 2026-11-12: SET API, SET API (business account), SET Direct Deposit.
- 2026-11-09: Docs: card payments, saved payers and treasury are live, not drafts.