Get Confirmation Payment Complete Page context
Finalizes the confirmation payment and completes the order. This page is reached after the user has confirmed the payment on their device. The page processes the finalization logic inherited from PaymentPageMixin and advances to ThankYouPage on success.
Preconditions:
Basket must not be empty
A confirmation payment option must be selected (
check_confirmation_payment_selected)Order number must be assigned (
has_order_number)User must have confirmed the payment (
is_payment_confirmed_by_user):user_confirmed = trueandtokenare both set in pre-order data
Skip Conditions:
Page is skipped if the order is already finalized
Page Context: (empty)
Next Pages:
ThankYouPage
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>)
Confirmation Payment Complete Page context retrieved
GET /orders/checkout/?page=ConfirmationPaymentCompletePage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
Confirmation Payment Complete Page context retrieved
{
"context_list": [
{
"page_name": "ConfirmationPaymentCompletePage",
"page_slug": "confirmationpaymentcompletepage",
"page_context": {}
}
],
"pre_order": {
"user_email": "user@akinon.com",
"payment_option": {
"pk": 5,
"name": "Confirmation Payment",
"slug": "confirmation-payment",
"payment_type": "confirmation",
"payment_type_label": "Confirmation From User"
}
},
"errors": [],
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

