Get GPay Complete Page context
Returns the context for the Garanti Pay (GPay) payment completion step.
This page is reached after GPayRedirectPage has created the payment transaction and the customer is ready to be directed to the Garanti Pay hosted payment form. The page context provides the redirect URL for the GPay payment endpoint, where the customer authorises and selects their instalment option on the provider's interface.
Preconditions:
A payment option with
payment_type: gpaymust be selected on the pre-orderA transaction identifier must be present on the pre-order (set by
GPayRedirectPage)
Page Context:
redirect_url— The path of the Garanti Pay redirect endpoint (/orders/gpay-redirect/). The customer must be navigated to this URL to complete the payment on the provider's hosted form.
Auto-advance: This page is considered already complete when the order has been finalised and a transaction identifier is present. In that case the flow advances directly to ThankYouPage without requiring resubmission.
Navigation:
Previous page:
GPayRedirectPageNext page:
ThankYouPage
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 Complete Page context retrieved
Redirect to basket (empty basket) or login (guest purchase not allowed)
GET /orders/checkout/?page=GPayCompletePage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
{
"context_list": [
{
"page_name": "GPayCompletePage",
"page_slug": "gpaycompletepage",
"page_context": {
"redirect_url": "/orders/gpay-redirect/"
}
}
],
"pre_order": {
"number": "ORD-20240101-00003",
"payment_option": {
"pk": 12,
"name": "Garanti Pay",
"slug": "garanti-pay",
"payment_type": "gpay"
},
"total_amount": "249.90",
"total_amount_with_interest": "249.90",
"is_guest": false,
"is_post_order": false
},
"errors": null,
"template_name": ""
}Last updated
Was this helpful?

