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

Complete MobilExpress payment with OTP

Finalises the payment by submitting the OTP to the MobilExpress gateway (finish_payment_process with otp set and cvv empty). On success, the order is created.

Required Fields:

  • otp: The OTP code received by the user. Between 4 and 8 characters.

Next Page: ThankYouPage

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
otpstring · min: 4 · max: 8Required

OTP code for payment completion. Between 4 and 8 characters.

Example: 483921
Responses
200

OTP payment completion result

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

"otp='483921'"
200

OTP payment completion result

{
  "context_list": [
    {
      "page_name": "ThankYouPage",
      "page_slug": "thankyoupage",
      "page_context": {}
    }
  ],
  "errors": {},
  "template_name": "orders/checkout.html"
}

Last updated

Was this helpful?