SET Merchant 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. 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.
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.
Errors
400 amount_invalid400 url_invalid400 description_invalid400 reference_invalid403 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_mode403 scope_missing429 rate_limited