For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get GPay Selection Page context

Returns the current checkout state for the Garanti Pay (GPay) selection step.

This page is reached after the customer selects a payment option whose type is gpay. It serves as a confirmation step before the system resolves the card type associated with the GPay BIN number and assigns an order number to the pre-order. The page itself carries no additional context data; all relevant order and payment information is available through the pre_order field of the response.

Preconditions:

  • A payment option with payment_type: gpay must be selected on the pre-order

  • No transaction must be in progress (no transaction identifier present, order number must be unset, and no card information must be resolved yet)

Auto-advance: This page is considered already complete when the GPay payment option is selected, the pre-order holds an assigned order number, and a card record has been resolved from the GPay BIN number. In that case the flow advances directly to GPayRedirectPage without requiring resubmission.

Navigation:

  • Previous page: PaymentOptionSelectionPage

  • Next page: GPayRedirectPage

get
Header parameters
x-requested-withstring · enumRequired

Required header for AJAX requests. Must be set to XMLHttpRequest for all checkout requests.

Default: XMLHttpRequestPossible values:
CookiestringOptional

Session cookie header (e.g. sessionid=abc123 or osessionid=<session_id>)

Responses
200

GPay Selection Page context retrieved

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
get/orders/checkout/?page=GPaySelectionPage
GET /orders/checkout/?page=GPaySelectionPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
{
  "context_list": [
    {
      "page_name": "GPaySelectionPage",
      "page_slug": "gpayselectionpage",
      "page_context": {}
    }
  ],
  "pre_order": {
    "payment_option": {
      "pk": 12,
      "name": "Garanti Pay",
      "slug": "garanti-pay",
      "payment_type": "gpay"
    },
    "total_amount": "249.90",
    "total_amount_with_interest": "249.90",
    "shipping_amount": "0.00",
    "card_info": null,
    "is_guest": false,
    "is_post_order": false
  },
  "errors": null,
  "template_name": ""
}

Last updated

Was this helpful?