Complete credit payment after gateway redirect
Processes the payment gateway's callback after the user returns from the payment redirect. The required input fields depend on the specific payment gateway configured for the selected POS option.
Gateway-Specific Input Serializers:
compay_credit→Response,acqResponseCode,AuthCode(optional),orderId,amount,productType(optional) — hash-validatedgaranti_credit→success(must betrue),TransactionId,Key,CardTokenfiba_credit→success(must betrue)zip_credit→checkout_idDefault (other gateways) →
success(must betrue)
Validation:
Gateway-specific hash or status validation is performed.
State Update:
On success, a transaction is created and the order is finalized.
pre_order.data['is_redirected']is set tofalseafter processing.
Backward Navigation:
On error,
redirection_started,is_redirected,redirect_url, andtokenare removed frompre_order.data.
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>)
The active schema depends on the gateway of the selected POS option
(pre_order.data['credit_payment_option'].gateway).
Payment completed or error
POST /orders/checkout/?page=CreditPaymentCompletePage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 16
"success=true"Payment completed or error
{
"context_list": [
{
"page_name": "ThankYouPage",
"page_slug": "thankyoupage",
"page_context": {
"order_number": "ORD-20240115-001"
}
}
],
"pre_order": {
"user_email": "user@akinon.com"
},
"errors": {},
"template_name": "orders/checkout.html"
}Last updated
Was this helpful?

