Query available rewards for the selected credit card
Submits the full credit card details to the payment gateway and retrieves the list of available rewards. The returned reward list is stored in pre_order.rewards and used by the subsequent RewardSelectionPage. This is an independent page — submitting it does not advance the checkout flow.
Required Fields:
card_number: Full credit card number. Spaces are stripped before validation.card_month: Card expiry month.card_year: Card expiry year (4 digits).card_cvv: Card security code.
Optional Fields:
card_holder: Cardholder name.card_name: Alias or label for the card.
Validation:
card_numbermust be a valid card number (spaces stripped before check)card_monthmust be a valid month valuecard_yearmust be a 4-digit valid yearcard_cvvmust be a valid CVV formatCard must not be expired
State Update:
On success,
rewardsin the pre-order is populated with the list of reward objects returned by the gateway. If the gateway returns no rewards,rewardsmay be set to an empty list.
Backward Navigation:
When navigating backward from this page,
rewardsis reset tonull.
Next Pages:
RewardSelectionPage
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>)
Full credit card number. Leading, trailing, and internal spaces are stripped before validation. Must pass card number format validation.
5400010000000004Card expiry month. Must be a valid month value.
12Card expiry year (4 digits). Must be a valid future year.
2027Card security code (CVV/CVC). Must pass CVV format validation.
123Cardholder full name. Optional.
John DoeOptional alias or label for the card.
My Main CardRewards retrieved or validation error
POST /orders/checkout/?page=RewardListPage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 88
"card_number='5400010000000004'&card_month='12'&card_year='2027'&card_cvv='123'"Rewards retrieved or validation error
{
"context_list": [
{
"page_name": "RewardSelectionPage",
"page_slug": "rewardselectionpage",
"page_context": {
"rewards": [
{
"amount": "50.00",
"type": "general"
},
{
"amount": "30.00",
"type": "special"
}
]
}
}
],
"pre_order": {
"user_email": "user@akinon.com",
"rewards": [
{
"amount": "50.00",
"type": "general"
},
{
"amount": "30.00",
"type": "special"
}
]
},
"errors": {},
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

