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

Get Credit Payment Selection Page context

Returns the list of available POS (point-of-sale) options for credit payment. This page is reached when the user selects a payment option whose type is credit_payment.

Preconditions:

  • Basket must not be empty

  • A credit payment option must be selected (check_credit_payment_selected)

Skip Conditions:

  • Page is skipped if a POS option has already been selected (i.e., credit_payment_option is set in pre_order.data)

Next Pages:

  • CreditPaymentConfirmationPage

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

Credit Payment Selection Page context retrieved

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
get/orders/checkout/?page=CreditPaymentSelectionPage
GET /orders/checkout/?page=CreditPaymentSelectionPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
200

Credit Payment Selection Page context retrieved

{
  "context_list": [
    {
      "page_name": "CreditPaymentSelectionPage",
      "page_slug": "creditpaymentselectionpage",
      "page_context": {
        "credit_payment_options": [
          {
            "pk": 10,
            "name": "Garanti Credit",
            "slug": "garanti-credit"
          },
          {
            "pk": 11,
            "name": "Fiba Credit",
            "slug": "fiba-credit"
          }
        ]
      }
    }
  ],
  "pre_order": {
    "user_email": "user@akinon.com",
    "payment_option": {
      "pk": 3,
      "name": "Credit Payment",
      "payment_type": "credit_payment"
    }
  },
  "errors": [],
  "template_name": "orders/checkout.html"
}

Last updated

Was this helpful?