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_numberandpre_order.verification_codemust both be set (check_sms_sent)
Skip Conditions:
Page is skipped when
sms_verificationisfalsein the payment option's configuration.
Page Context:
verification_sent_datetime: ISO 8601 timestamp of when the SMS was sentseconds_left: Remaining seconds before the code expires (based onverify_timeout, default 180 seconds)retry: Whether a verification code has been issued (alwaystruewhen page is reached)
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>)
Verify SMS page context retrieved
GET /orders/checkout/?page=VerifySmsPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
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?

