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_codeThe code must be submitted before the timeout expires. Timeout is configured via
verify_timeoutin 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
SendSmsPageto request a new code.
State Changes:
pre_order.entered_codeis set to the submitted code
Next Page: PayOnDeliveryPage
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>)
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.
483921Pattern: ^\d{6}$SMS verification result
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'"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?

