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 betrue.
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
ResultCodeisSuccessand no further action is needed, the order is created and the user is routed toThankYouPage.If
ResultCodeisThreeDSecureURLCreated, a 3D redirect URL is stored and the user is routed toMobilExpressPaymentThreeDPage.Other result codes route to the appropriate completion page.
State Changes (on non-success outcome):
pre_order.data['me_payment_tried']is set totruepre_order.data['me_payment_succeeded']is set based on the resultpre_order.data['me_further_action']is set to theResultCodepre_order.data['me_transaction_id']is set to the MobilExpress transaction IDpre_order.data['me_three_d_redirect_url']is set if 3D redirect is needed
Next Page:
ThankYouPage— payment succeededMobilExpressPaymentThreeDPage— 3D Secure redirect requiredMobilExpressPaymentCompleteOtpPage—ResultCodeisOTPRequiredMobilExpressPaymentCompleteCvvPage—ResultCodeisCVVRequiredMobilExpressPaymentCompleteCvvAndOtpPage—ResultCodeisCVVAndOTPRequired
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>)
User must accept the terms and conditions to proceed. Must be true.
Payment attempt result
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"Payment attempt result
{
"context_list": [
{
"page_name": "ThankYouPage",
"page_slug": "thankyoupage",
"page_context": {}
}
],
"errors": {},
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

