Create a Stripe payment intent for the cart (cart-token cookie or customer JWT)
POST
/store/v1/carts/{cartId}/payment-intent
const url = 'https://your-store.example.com/store/v1/carts/example/payment-intent';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-store.example.com/store/v1/carts/example/payment-intentParameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” cartId
required
string