Get Campaign List Page context
Returns the context for the Campaign List Page, which queries the payment gateway for available campaigns associated with the selected credit card. This page is only reachable when a credit card payment option is selected, card details are present in the pre-order, and the active payment gateway supports campaign querying.
Preconditions:
Basket must not be empty
A credit card payment option must be selected
Card information must be present in the current pre-order
The active payment gateway must support campaign listing
Skip Conditions:
Page is skipped if campaign data has already been fetched (i.e.,
campaignsis notnullin the current pre-order state)
available_for_post_order: true
Next Pages (determined dynamically):
CampaignSelectionPage— always, after campaign data is fetched
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>)
Campaign List Page context retrieved
GET /orders/checkout/?page=CampaignListPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
Campaign List Page context retrieved
{
"context_list": [
{
"page_name": "CampaignListPage",
"page_slug": "campaignlistpage",
"page_context": {}
}
],
"pre_order": {
"user_email": "user@akinon.com",
"payment_option": {
"pk": 3,
"name": "Credit Card",
"slug": "credit-card",
"payment_type": "credit_card",
"payment_type_label": "Credit Card"
},
"campaigns": null
},
"errors": [],
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

