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

Get Verify SMS Page context

Returns the context for the SMS verification step. The user enters the 6-digit code that was sent to their phone number on the SendSmsPage.

Preconditions:

  • An SMS must have been sent — pre_order.phone_number and pre_order.verification_code must both be set (check_sms_sent)

Skip Conditions:

  • Page is skipped when sms_verification is false in the payment option's configuration.

Page Context:

  • verification_sent_datetime: ISO 8601 timestamp of when the SMS was sent

  • seconds_left: Remaining seconds before the code expires (based on verify_timeout, default 180 seconds)

  • retry: Whether a verification code has been issued (always true when page is reached)

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

Verify SMS page context retrieved

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

Verify SMS page context retrieved

{
  "context_list": [
    {
      "page_name": "VerifySmsPage",
      "page_slug": "verifysmspage",
      "page_context": {
        "verification_sent_datetime": "2024-01-15T12:00:00Z",
        "seconds_left": 150,
        "retry": true
      }
    }
  ],
  "pre_order": {
    "basket": {
      "pk": 123,
      "total_amount": "150.00"
    },
    "payment_option": {
      "pk": 4,
      "name": "Pay on Delivery",
      "payment_type": "pay_on_delivery"
    },
    "phone_number": "+905551234567"
  },
  "errors": [],
  "template_name": "orders/checkout.html"
}

Last updated

Was this helpful?