Complete MobilExpress 3D Secure payment
Finalises the order after the user completes 3D Secure verification at the bank. This endpoint is called by the browser after the bank redirects back to the checkout URL with page=MobilExpressPaymentThreeDPage&pos_redirect=true as query parameters.
The gateway's hash is validated and finish_payment_process is called with three_d_secure=True.
Required Fields (posted by the bank's redirect):
TransactionId: The internal order transaction IDMobilexpressTransId: The MobilExpress transaction IDResult: 3D Secure result. Must be'3DSuccess'to proceed with order creationTotalAmount: Total payment amount (must matchpre_orderamount)InstallmentCount: Number of installments usedHash: HMAC hash from the MobilExpress gateway for response integrity verification
Validation:
Resultmust be'3DSuccess'; otherwise a validation error is returnedHash must be valid (verified by
gateway.is_hash_valid)TotalAmountmust matchpre_order.get_total_amount_with_interest()
Next Page: ThankYouPage
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>)
Internal order transaction ID posted by the bank redirect.
ORDER-20240115-001MobilExpress transaction ID posted by the bank redirect.
ME-TXN-9876543D Secure result code. Must be '3DSuccess' to proceed.
3DSuccessPossible values: Total payment amount posted by the bank redirect (12 digits, 2 decimal places).
Must match pre_order.get_total_amount_with_interest().
350.00Number of installments used in the transaction.
1HMAC hash from the MobilExpress gateway for response integrity verification.
Validated via gateway.is_hash_valid.
a3f5c2d1e8b94f7a...3D Secure payment completion result
POST /orders/checkout/?page=MobilExpressPaymentThreeDPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 170
"TransactionId='ORDER-20240115-001'&MobilexpressTransId='ME-TXN-987654'&Result='3DSuccess'&TotalAmount='350.00'&InstallmentCount=1&Hash='a3f5c2d1e8b94f7a...'"3D Secure payment completion result
{
"context_list": [
{
"page_name": "ThankYouPage",
"page_slug": "thankyoupage",
"page_context": {}
}
],
"errors": {},
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

