Set cart payment
PUT
/ store/ v1/ carts/ {cart_id}/ paymentSay how the buyer will pay: the cart is priced for that method, with its fee or discount. The method must be one of GET /carts/{cart_id}/payment-methods.
Path parameters
cart_idstringrequiredThe cart's ID, like
cart_01k8qs5s….
Headers
X-Cart-TokenstringrequiredThe cart's token
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
payment_account_idstringrequiredTypeID with the
paccprefix.methodenumrequiredHow the customer pays.
- card
- mada
- apple_pay
- google_pay
- stc_pay
- cash_on_delivery
- bank_transfer
- gift_card
- cash
- card_present
- on_account
- mobile_wallet
- fawry
- valu
- sympl
- souhoola
- instapay
- tabby
- tamara
Returns
200 The cart, priced for the method.
Errors
- 404
not_foundNo such cart. - 409A payment is in progress, or the cart is completed.
- 422
validation_failedNot a way to pay this cart.