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

Submit SMS Verification Code

Verifies the code entered by the user against the code that was sent via SMS.

Required Fields:

  • verify_code: The 6-digit numeric code the user received via SMS. Must consist of exactly 6 digits.

Validation:

  • The entered code must match pre_order.verification_code

  • The code must be submitted before the timeout expires. Timeout is configured via verify_timeout in the payment option's config (default: 180 seconds).

  • If the timeout has elapsed, a validation error is returned and the user must go back to SendSmsPage to request a new code.

State Changes:

  • pre_order.entered_code is set to the submitted code

Next Page: PayOnDeliveryPage

post
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>)

Body
verify_codestringRequired

The 6-digit numeric verification code sent via SMS for Pay on Delivery verification. Must consist of exactly 6 digits. The code is validated against the stored pre_order.verification_code and must be submitted before the verify_timeout (default: 180 seconds) elapses.

Example: 483921Pattern: ^\d{6}$
Responses
200

SMS verification result

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
post/orders/checkout/?page=VerifySmsPage
POST /orders/checkout/?page=VerifySmsPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 24

"verify_code='483921'"
200

SMS verification result

{
  "context_list": [
    {
      "page_name": "PayOnDeliveryPage",
      "page_slug": "payondeliverypage",
      "page_context": {
        "agreement": false
      }
    }
  ],
  "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?