Skip to main content
POST
/
checkout
/
payment-context
{
  "gateway_id": "stripe",
  "title": "Credit Card (Stripe)",
  "cart_total": "44.98",
  "currency": "USD",
  "client_secret": "pi_abc123_secret_xyz789",
  "payment_intent_id": "pi_abc123",
  "public_key": "pk_test_abc123xyz789"
}
This endpoint is currently shown as a preview of what’s currently in development and is subject to change.

Body

application/json

Payment method for context creation

payment_method
string
required

Payment method ID

Response

Payment context created successfully

gateway_id
string

Payment gateway ID

title
string

Payment gateway title

cart_total
string

Cart total amount

currency
string

Currency code

client_secret
string

Client secret for payment processing (if applicable)

payment_intent_id
string

Payment intent ID (if applicable)

public_key
string

Public key for client-side processing (if applicable)

I