For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

post
Header parameters
x-requested-withstring · enumRequired

Required header for AJAX requests. Must be set to XMLHttpRequest for all checkout requests.

Default: XMLHttpRequestPossible values:
CookiestringOptional

Session cookie header (e.g. sessionid=abc123 or osessionid=<session_id>)

Body
remote_installment_idstring · max: 32Required

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.

Example: remote-inst-003
Responses
200

Remote installment selected successfully

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
post/orders/checkout/?page=MasterpassRemoteInstallmentPage
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'"
200

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?