Get Masterpass REST Order Number Page context
Returns the context for the Masterpass REST order number assignment page. This page assigns the order number that will be used for the subsequent Masterpass payment request and decides whether the transaction must be completed via 3D Secure.
Preconditions:
Basket must not be empty
Payment option must be Masterpass REST (
check_masterpass_selected)Card information must be present (
check_card_info_not_empty)An installment must be selected, either through
pre_order.installment(default flow) orpre_order.data["installment_alt"](remote installment flow)
Page Context:
Returns an empty object
{}.
Skip Conditions: This page is considered already completed (is_already_done) when both:
The order number has been assigned (
pre_order.order_number_empty()isfalse), andpre_order.redirect_to_three_dis set (eithertrueorfalse).
available_for_post_order: true
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>)
Masterpass REST order number page context retrieved
GET /orders/checkout/?page=MasterpassRestOrderNoPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
Masterpass REST order number page context retrieved
{
"context_list": [
{
"page_name": "MasterpassRestOrderNoPage",
"page_slug": "masterpassrestordernopage",
"page_context": {}
}
],
"pre_order": {
"payment_option": {
"pk": 7,
"slug": "masterpass-rest",
"payment_type": "masterpass_rest"
},
"card_info": {
"bin_number": "542119",
"card": {
"pk": 1,
"name": "Master"
}
},
"installment": {
"pk": 2,
"installment_count": 3
},
"number": null,
"redirect_to_three_d": null
},
"errors": [],
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

