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

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: gpay must be selected on the pre-order

  • A 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: GPayRedirectPage

  • Next page: ThankYouPage

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 Complete Page context retrieved

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
get/orders/checkout/?page=GPayCompletePage
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?