Get Credit Card 3D Secure Page context
Returns the context for 3D Secure verification redirect. This page handles the redirect to the bank's 3D Secure authentication page and processes the return response.
3D Secure Flow:
User is redirected to bank's 3D Secure page
User completes authentication (SMS OTP, biometric, etc.)
Bank redirects back with verification result
System validates the response and completes payment
Redirect URL:
redirect_url: Internal endpoint that handles 3D Secure initiationThis endpoint generates the bank redirect form with necessary parameters
Cached Card Data:
Card details are temporarily cached during 3D Secure flow
Cache key is based on pre-order hash
Cached data is encrypted using Django's signing framework
Security Considerations:
Sensitive card data (number, CVV) marked with
@sensitive_variablesCard data cleared from cache after successful verification
Failed verifications also clear cached data
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>)
3D Secure page context retrieved
GET /orders/checkout/?page=CreditCardThreeDSecurePage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
3D Secure page context retrieved
{
"context_list": [
{
"page_name": "CreditCardThreeDSecurePage",
"page_slug": "creditcardthreedsecurepage",
"page_context": {
"redirect_url": "https://sandbox.akinon.com/orders/redirect-three-d/"
}
}
],
"pre_order": {
"basket": {
"pk": 123,
"total_amount": "150.00"
},
"shipping_address": {
"pk": 10,
"first_name": "John",
"last_name": "Doe"
},
"billing_address": {
"pk": 10,
"first_name": "John",
"last_name": "Doe"
},
"payment_option": {
"pk": 1,
"name": "Credit Card",
"slug": "credit-card",
"payment_type": "credit_card",
"payment_type_label": "Credit Card"
},
"card_info": {
"bin_number": "542119",
"card": {
"pk": 1,
"name": "Visa"
}
},
"installment": {
"pk": 2,
"installment_count": 3,
"label": "3 Installments"
},
"total_amount": "165.59",
"total_amount_with_interest": "165.59",
"unpaid_amount": "165.59",
"currency_type_label": "USD",
"redirect_to_three_d": true
},
"errors": [],
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

