Skip to main content
Checkout

One shopper purchase can include products from several stores. Ignyt takes one payment and places one order with each store.

The checkout flow

The quickstart runs this flow with real requests. This page explains how to handle the cases a real checkout meets.

1. Get a quote

After adding lines and a delivery address, request a quote with POST /v1/carts/{cart_id}/quotes. Ignyt asks every store in the cart for current prices, stock, shipping and tax, and returns one total that is valid until expires_at. Before showing the total, check the quote:
  • unsupported lines: items that can’t be bought right now, for example because they sold out. Tell the shopper.
  • coupon_results: every supplied coupon must be verified for its merchant basket. A rejected or unverifiable code blocks the entire cart before payment. Correct the cart and request a fresh quote.
  • Price changes: if stock or prices changed since the shopper added items, the quote request fails with 409 cart_requires_review and details.changes lists what changed. Show the changes, accept them with POST /v1/carts/{cart_id}/accept-review, and request a new quote.
Amounts are integer minor units in the quote’s currency: 27720 with AED is AED 277.20.

2. Get the shopper’s approval

Show the shopper the quote’s total_minor and get an explicit approval of that amount. If anything in the cart changes after the quote, the quote is no longer valid; request a new one and ask again. Never quietly accept a higher total for the shopper.

3. Submit once

Submit with the approved quote and total. Create an Idempotency-Key for this checkout, save it with the cart, and send it with the request.
A 202 response with purchase_id means Ignyt accepted the purchase and will process it. It doesn’t mean the payment succeeded yet. If you don’t get a response, send the same key and body again. You get the original result back with "duplicate": true; Ignyt never creates a second purchase. Reusing the key with a different body returns 409 conflict.

4. Take the payment

Read GET /v1/carts/{cart_id}/purchase after submission. While checkout starts, it can return purchase status accepted, payment status pending, and no merchant orders or payment action. Keep the original cart and retry the read with backoff. When payment.status is requires_action and a payment action is available, use its presentation:
  • embed loads Mamo’s payment form in an iframe on your HTTPS checkout. Ignyt enables it per configured Sandbox app and uses the submitted shopper email to prefill the form.
  • redirect, or an absent presentation on an older API, opens the provider-hosted page.
Both use payment_action.url and retain the existing type: "redirect" for compatibility. Register your app’s HTTPS return page with Ignyt before enabling inline checkout. After capture, Mamo can navigate the full page to that return URL. A bank challenge can also require full-page navigation. When the shopper returns or reopens checkout, read the original cart purchase again. Display payment confirmation from Ignyt’s verified payment state and show each store’s order progress separately. Use the checkout SDK to embed the form in a web checkout and resume the same purchase on iOS and Android. A missing action can also mean payment is in progress. Continue reading the original checkout. This API does not offer shopper cancellation for a submitted unpaid Mamo payment. Quote expiry governs submission and does not establish that an already issued Mamo payment link is closed.

5. Track each store’s order

A purchase has a status, and each store order inside it has its own. Read store orders from merchant_orders in GET /v1/purchases/{purchase_id}, or subscribe to the order.purchase.updated, order.merchant_order.updated and money.payment.updated events. Show each store’s status separately in your app.

Lost responses and timeouts

A timeout or 5xx after a write does not mean it failed. The purchase or payment may have gone through.
  • Read the original cart or purchase before doing anything else.
  • If the operation takes an Idempotency-Key, retry with the original key and body.
  • Never create a new cart, purchase or payment to replace one whose result you don’t know.
A store order can stay unknown while Ignyt checks with the store. Show it as pending; Ignyt resolves it by looking the order up, never by placing it again. See Errors and retries.

Refunds, returns and cancellations

What to do after checkout.

Discounts and promotions

Apply store coupons before quoting.

Test in Sandbox

Trigger price changes, sold-out items and failed orders.

Error codes

Checkout error codes and what to do.
Last modified on November 30, 2026