For the complete documentation index, see llms.txt. This page is also available as Markdown.

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_creditResponse, acqResponseCode, AuthCode (optional), orderId, amount, productType (optional) — hash-validated

  • garanti_creditsuccess (must be true), TransactionId, Key, CardToken

  • fiba_creditsuccess (must be true)

  • zip_creditcheckout_id

  • Default (other gateways) → success (must be true)

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 to false after processing.

Backward Navigation:

  • On error, redirection_started, is_redirected, redirect_url, and token are removed from pre_order.data.

Next Pages:

  • ThankYouPage

post
Header parameters
x-requested-withstring · enumRequired

Required header for AJAX requests. Must be set to XMLHttpRequest for all checkout requests.

Default: XMLHttpRequestPossible values:
CookiestringOptional

Session cookie header (e.g. sessionid=abc123 or osessionid=<session_id>)

Body

The active schema depends on the gateway of the selected POS option (pre_order.data['credit_payment_option'].gateway).

or
or
or
or
Responses
200

Payment completed or error

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
post/orders/checkout/?page=CreditPaymentCompletePage
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"
200

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?