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

Attempt MobilExpress payment

Submits the payment attempt to the MobilExpress gateway (process_payment). Depending on the gateway's ResultCode, the flow routes to different completion pages.

Required Fields:

  • agreement: User must accept the terms and conditions. Must be true.

Payment Flow:

  • The gateway is called with the stored card token, order number, installment count, and total amount. 3D Secure may be requested automatically based on system rules.

  • If ResultCode is Success and no further action is needed, the order is created and the user is routed to ThankYouPage.

  • If ResultCode is ThreeDSecureURLCreated, a 3D redirect URL is stored and the user is routed to MobilExpressPaymentThreeDPage.

  • Other result codes route to the appropriate completion page.

State Changes (on non-success outcome):

  • pre_order.data['me_payment_tried'] is set to true

  • pre_order.data['me_payment_succeeded'] is set based on the result

  • pre_order.data['me_further_action'] is set to the ResultCode

  • pre_order.data['me_transaction_id'] is set to the MobilExpress transaction ID

  • pre_order.data['me_three_d_redirect_url'] is set if 3D redirect is needed

Next Page:

  • ThankYouPage — payment succeeded

  • MobilExpressPaymentThreeDPage — 3D Secure redirect required

  • MobilExpressPaymentCompleteOtpPageResultCode is OTPRequired

  • MobilExpressPaymentCompleteCvvPageResultCode is CVVRequired

  • MobilExpressPaymentCompleteCvvAndOtpPageResultCode is CVVAndOTPRequired

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
agreementboolean · enumRequired

User must accept the terms and conditions to proceed. Must be true.

Possible values:
Responses
200

Payment attempt result

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

"agreement=true"
200

Payment attempt result

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

Last updated

Was this helpful?