Verify the OTP code for the pending gift card
Submits the OTP code entered by the user. The gateway verifies the code and, on success, returns the card's available balance. The flow then continues to GiftCardApplyPage.
Required Fields:
otp_code: The one-time password received by the user (max 16 characters)
Validation:
An unverified pending card must exist in the session
The OTP code must be accepted by the gateway; an invalid code returns a validation error
Backward Navigation:
If the OTP has not yet been verified, navigating backward clears the pending card and returns to
GiftCardPageIf already verified, backward navigation goes to
GiftCardApplyPage
Next Pages:
GiftCardApplyPage— always, after successful verification
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 one-time password received by the user (SMS or similar channel). Leading and trailing whitespace is stripped. Maximum 16 characters.
482917OTP verified; flow routed to GiftCardApplyPage
POST /orders/checkout/?page=GiftCardOtpPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 21
"otp_code='482917'"OTP verified; flow routed to GiftCardApplyPage
{
"context_list": [
{
"page_name": "GiftCardApplyPage",
"page_slug": "giftcardapplypage",
"page_context": {
"card_number_masked": "****-****-****-3456",
"available_balance": "100.00",
"max_applicable_amount": "100.00"
}
}
],
"pre_order": {
"user_email": "user@akinon.com"
},
"errors": {},
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

