Create Payment Collection

POST/store/:storeCode/payment-collections
publishable key

Create a payment collection for a cart.

HTTP-only in v0.0.25 — there is no `sdk.store.payment.createPaymentCollection` method. Prefer `initiatePaymentSession`, which creates the collection automatically when the cart has none yet.

Path Parameters
storeCoderequiredstring

Store slug in the URL (first argument to every SDK store method).

Request Body

Schema

Copy
HttpTypes.StoreCreatePaymentCollection

Properties

cart_idrequiredstring

Cart to create a payment collection for.

Response

Status

200OK

Schema

Copy
HttpTypes.StorePaymentCollectionResponse

Properties

payment_collectionrequiredStorePaymentCollection

The payment collection.