Get Gift Card Payment Page context
A payment confirmation page reached when gift card reservations fully cover the order total (unpaid amount is zero) and the gift card payment option has been explicitly selected. Returns an empty context; the only user action required is accepting the agreement.
Preconditions (all must be satisfied):
At least one gift card reservation must exist
The remaining unpaid amount must be zero (gift cards fully cover the order)
The selected payment option must be of gift card type
Skip Conditions:
Page is skipped if the order has already been finalized
Next Pages (after POST):
ThankYouPage— order is placed
Required header for AJAX requests. Must be set to XMLHttpRequest for all checkout requests.
XMLHttpRequestPossible values: Session cookie header (e.g. sessionid=abc123 or osessionid=<session_id>)
Gift Card Payment Page context retrieved
GET /orders/checkout/?page=GiftCardPaymentPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
Gift Card Payment Page context retrieved
{
"context_list": [
{
"page_name": "GiftCardPaymentPage",
"page_slug": "giftcardpaymentpage",
"page_context": {}
}
],
"pre_order": {
"user_email": "user@akinon.com",
"total_amount": "100.00",
"unpaid_amount": "0.00",
"payment_option": {
"pk": 8,
"name": "Gift Card",
"slug": "gift-card",
"payment_type": "gift_card",
"payment_type_label": "Gift Card"
}
},
"errors": [],
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

