Create payment session
Creates a new payment session for the cart. Delegates to the payment gateway to initialize a provider-specific session (e.g. Stripe PaymentIntent, Adyen session, PayPal order).
POST
Spree SDK
Authorizations
Publishable API key for store access
JWT token for authenticated customers
Headers
Bearer token for authenticated customers
Order token for guest access
Unique key for request idempotency.
Path Parameters
Cart prefixed ID (e.g., cart_abc123)
Body
application/json
Response
201 - application/json
payment session created
Spree SDK

