SET API · Card payments
Open a card checkout
POST/v1/card_checkouts
A Stripe-hosted Checkout for one card (or Stripe bank debit) payment on the merchant's own SET Connect account, with SET's fee as the application fee: 1.02% under $1M of card volume so far that calendar month (UTC), 0.98% from $1M to $7M, 0.92% from $7M to $15M and 0.85% from $15M. Send the payer to url.
Headers
Idempotency-Keystring- Optional. The same key and body run once; a replay answers with
Idempotent-Replayed: true. Kept 24 hours.
Body
amountdecimal stringrequired- USD, 0.50 to 999,999.99.
successUrlhttps URLrequired- Where the payer lands after paying.
cancelUrlhttps URLrequired- Where the payer lands on cancel.
descriptionstring- Shown on the Checkout.
referencestring- Passed to Stripe's metadata only; SET does not store it.
invoicestring- Optional: one of your own invoices (
inv_…) this payment pays, in this mode,openorshort, in USD, withamountexactly what is still due on it.
Notes
- The payment appears in
GET /v1/card_paymentswithcheckoutSessionset to thisid. Events:card_payment.<state>,card_payment.refunded,card_payment.fee_refunded,card_payment.dispute.<status>. - Only payments SET started (this call, or the merchant's embedded payment form) are recorded; the merchant's other Stripe business is never read into SET.
- With
invoice:invoice_unknownalso answers another business's invoice. The invoice is marked paid only from Stripe's verified report that the payment succeeded, and in the same database transaction as the card payment itself: the receipt journal entry, the invoice's received total and state, the match and their events (payment.matched,invoice.paid,invoice.shortorinvoice.over,journal_entry.created) are written together or not at all. A later payment to an invoice already paid is bookedover, never moved back; a void invoice is never settled.
Errors
400 amount_invalid400 url_invalid400 description_invalid400 reference_invalid400 invoice_invalid404 invoice_unknown409 invoice_not_open409 invoice_currency_not_card409 invoice_amount_mismatch403 card_payments_merchant_only409 set_connect_not_linked409 set_connect_not_ready502 stripe_unavailable503 set_connect_unavailable401 api_key_required401 api_key_invalid401 api_key_wrong_mode401 api_key_expired403 scope_missing403 platform_api_paused429 rate_limited503 api_disabled