Checkout Provider
The checkout page/step to process.
CSRF token for write operations (POST, PUT, PATCH, DELETE). Required for security when using session authentication. Obtain token from cookie 'csrftoken' or meta tag in HTML.
abc123def456ghi789Session ID and CSRF token cookies.
Format: sessionid=<id>; osessionid=<id>; csrftoken=<token>
sessionid=abc123def456; osessionid=abc123def456; csrftoken=xyz789Checkout step processed successfully.
Important: On success, the response contains the next page's data, not the current page's. This allows the client to proceed to the next step with the required data.
| Request Page | Response Contains |
|---|---|
CheckoutProviderIndexPage |
CheckoutProviderSelectionPage context |
CheckoutProviderSelectionPage |
CheckoutProviderAddressSelectionPage context |
CheckoutProviderAddressSelectionPage |
CheckoutProviderShippingOptionPage context |
CheckoutProviderShippingOptionPage |
CheckoutProviderAgreementListPage context |
CheckoutProviderAgreementListPage |
CheckoutProviderNotificationPage context |
CheckoutProviderNotificationPage |
CheckoutProviderThankYouPage context (order completion) |
Page context data returned from checkout provider endpoint. The response structure varies depending on which page was processed:
| Page | Response Fields |
|---|---|
CheckoutProviderIndexPage |
Empty object {} |
CheckoutProviderSelectionPage |
checkout_providers[], redirect_url (remote payment page) |
CheckoutProviderAddressSelectionPage |
redirect_url (to continue on provider) |
CheckoutProviderShippingOptionPage |
shipping_options[] |
CheckoutProviderAgreementListPage |
agreements[] |
CheckoutProviderNotificationPage |
return_url, merchant_customer_id, merchant_customer_date_joined, merchant_customer_akifast_date_joined |
All fields are optional since different pages return different subsets.
URL to redirect the user to.
- SelectionPage: Remote payment page URL (e.g., Akifast hosted page).
- AddressSelectionPage: URL to continue checkout on provider page.
NotificationPage only. URL to redirect after order completion. Points to the order success page.
NotificationPage only. Customer's unique ID in the merchant system.
NotificationPage only. Customer's registration date in the merchant system.
NotificationPage only. Date when customer linked their Akifast account.
NotificationPage context only. The selected agreement code.
NotificationPage context only. Human-readable name of the selected agreement.
NotificationPage context only. Rendered HTML content of the selected agreement document.
Validation error, basket changed, or processing error. The response contains error details in a field-keyed format.
List of checkout providers
Provider ID.
Provider display name.
Provider slug identifier.
URL to the provider's logo image.
Whether the provider is currently active.
List of checkout providers
Signed order number (time-limited signature for security).
Response format. Use json for JSON response.
Order details
HTML page with order confirmation.
Order not found or signature expired/invalid
Last updated
Was this helpful?

