Get Confirmation Payment Agreement Confirm Page context
Returns the terms and conditions data that the user must accept before the payment gateway can be enabled. This page is only shown when the preceding ConfirmationPaymentAgreementCheckPage determined that an agreement is required.
The terms_and_conditions field in the page context is a free-form dict (DictField) — its structure is entirely determined by the payment gateway and varies per integration. For example, the Paycell gateway returns termsOfServiceHtmlContentTR and termsOfServiceHtmlContentEN keys containing the full HTML content of the agreement alongside a responseHeader and eulaId.
Preconditions:
Basket must not be empty
A confirmation payment option must be selected (
check_confirmation_payment_selected)Payment must be enabled (
is_payment_enabled)Agreement must be required (
is_agreement_required)
Skip Conditions:
Page is skipped if
agreement_signed = trueis already set in the pre-order data
Next Pages:
ConfirmationPaymentSelectedPage
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>)
Agreement Confirm Page context retrieved
GET /orders/checkout/?page=ConfirmationPaymentAgreementConfirmPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
Agreement Confirm Page context retrieved
{
"context_list": [
{
"page_name": "ConfirmationPaymentAgreementConfirmPage",
"page_slug": "confirmationpaymentagreementconfirmpage",
"page_context": {
"terms_and_conditions": {
"responseHeader": {
"responseCode": "0",
"responseDescription": "Success"
},
"eulaId": 8,
"termsOfServiceHtmlContentTR": "<!DOCTYPE html>...",
"termsOfServiceHtmlContentEN": "<!DOCTYPE html>..."
}
}
}
],
"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?

