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: gpaymust be selected on the pre-orderNo 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:
PaymentOptionSelectionPageNext page:
GPayRedirectPage
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>)
GPay Selection Page context retrieved
Redirect to basket (empty basket) or login (guest purchase not allowed)
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?

