PUT
/
public
/
checkout
/
cart
/
{id}
/
prepare-stripe
curl -X PUT \
 /public/checkout/cart/{id}/prepare-stripe \
 --header "Authorization: Bearer <token>"
{
  "clientSecret": "<string>",
  "paymentIntentId": "<string>",
  "setupIntentId": "<string>"
}

Authorizations

Authorization
string
header
required

Value for the Authorization header parameter.

Path Parameters

id
string
required

Cart identifier

Response

200
application/json
Cart resource updated
clientSecret
string

The Stripe client secret for the payment intent or setup intent.

paymentIntentId
string | null

The Stripe payment intent id, if the cart amount due is not zero.

setupIntentId
string | null

The Stripe setup intent id, if the cart amount due is zero.