Select Remote Installment Option for Masterpass REST
Saves the selected remote installment option for the Masterpass REST flow. The submitted ID is validated against the remote installment service and the active filter rules before being stored.
Required Fields:
remote_installment_id: The identifier of the installment option returned by the remote installment service (max 32 characters).
Validation:
The ID must match an installment returned by the remote service. An unknown or inactive ID returns
"Installment doesn't match.".The matched installment must pass the active filter rules. A filtered-out installment returns the filter's error message.
State Update:
The remote installment ID and the computed installment details (installment count, interest rate, interest amount) are saved to the session.
Backward Navigation:
On backward navigation, the remote installment ID and installment details are removed from the session.
Next Page:
MasterpassRestOrderNoPage
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>)
Identifier of the installment option returned by the remote installment service. Must match an active, filter-passing installment for the current card and basket amount.
remote-inst-003Remote installment selected successfully
POST /orders/checkout/?page=MasterpassRemoteInstallmentPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 43
"remote_installment_id='remote-inst-001'"Remote installment selected successfully
{
"context_list": [
{
"page_name": "MasterpassRestOrderNoPage",
"page_slug": "masterpassrestordernopage",
"page_context": {}
}
],
"pre_order": {
"payment_option": {
"pk": 7,
"slug": "masterpass-rest",
"payment_type": "masterpass_rest"
},
"data": {
"remote_installment_id": "remote-inst-003",
"installment_alt": {
"remote_installment_id": "remote-inst-003",
"interest_rate": "0.035",
"installment_count": 3,
"installment_interest_amount": "5.60"
}
}
},
"errors": {},
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

