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

Select a credit POS option

Stores the selected POS option in pre_order.data['credit_payment_option']. The submitted PK must belong to one of the available POS options returned in the GET context (payment_option.get_available_poses()).

Required Fields:

  • credit_payment_option: Primary key of the selected Pos object.

Validation:

  • The POS must be present in the available POS options for the current payment option.

State Update:

  • pre_order.data['credit_payment_option'] is set to the selected Pos instance.

Backward Navigation:

  • When navigating backward, credit_payment_option is reset to null.

Next Pages:

  • CreditPaymentConfirmationPage

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
credit_payment_optionintegerRequired

Primary key of the selected Pos object. Must be one of the available POS options returned by payment_option.get_available_poses() for the current credit payment option.

Example: 10
Responses
200

POS option selected or validation error

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
post/orders/checkout/?page=CreditPaymentSelectionPage
POST /orders/checkout/?page=CreditPaymentSelectionPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 28

"credit_payment_option=10"
200

POS option selected or validation error

{
  "context_list": [
    {
      "page_name": "CreditPaymentConfirmationPage",
      "page_slug": "creditpaymentconfirmationpage",
      "page_context": {}
    }
  ],
  "pre_order": {
    "user_email": "user@akinon.com"
  },
  "errors": {},
  "template_name": "orders/checkout.html"
}

Last updated

Was this helpful?