Order creation includes your first checkout session

Order creation includes your first checkout session A sequence diagram generated by Archify. POST /v2/orders orderId + sessionId + checkoutUrl Order and first session created together Redirect to checkoutUrl Load order using link token POST /v2/orders/:orderId/checkout-sessions New sessionId + checkoutUrl Same order; original link remains active Normal checkout: one creation request Optional: another link for the same open order Your backend · Keep API keys here · Sequence participant Your backend Keep API keys here TygaPay API · Orders and sessions · Sequence participant TygaPay API Orders and sessions Customer · Hosted checkout · Sequence participant Customer Hosted checkout Legend request return security default message

Order = what is owed

  • • Merchant reference, items and amount.
  • • Create once; reuse its orderId.

Session = access to checkout

  • • A secret link with its own expiry.
  • • No merchant API key goes to the customer.

Link control, not payment

  • • Revoke a session to disable its link.
  • • Sessions cannot outlive their order.