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

Get Funds Transfer Choice Page context

Returns available bank accounts for funds transfer (wire transfer/EFT) payment. User selects which bank account to transfer money to.

Preconditions:

  • Payment option must be selected and must be funds transfer type (is_funds_transfer())

  • Basket must not be empty

Bank Account Selection:

  • Lists all active bank accounts configured in the system

  • Each bank account includes: bank name, account holder, IBAN, currency

  • User selects one bank account for payment instructions

Auto-selection:

  • If only one bank account is available and no POS slug configured:

    • Bank account is automatically selected

    • Page is skipped

    • Routes directly to FundsTransferPage

Reference Code Generation:

  • Some payment gateways support reference codes for tracking

  • If gateway has has_reference_code capability:

    • Reference code is generated when bank account is selected

    • Reference code is stored in pre_order.data['funds_transfer']

    • Used to match customer payment with order

get
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>)

Responses
200

Funds transfer choice page context retrieved

application/json
errorsone of · nullableOptional
or
string[]Optional
template_namestringOptional
get/orders/checkout/?page=FundsTransferChoicePage
GET /orders/checkout/?page=FundsTransferChoicePage HTTP/1.1
Host: sandbox.akinon.com
x-requested-with: XMLHttpRequest
Accept: */*
200

Funds transfer choice page context retrieved

{
  "context_list": [
    {
      "page_name": "FundsTransferChoicePage",
      "page_slug": "fundstransferchoicepage",
      "page_context": {
        "bank_accounts": [
          {
            "pk": 1,
            "bank_name": "Example Bank",
            "account_holder": "AKINON TECHNOLOGIES",
            "iban": "TR330006100519786457841326",
            "currency": "TRY",
            "is_active": true
          },
          {
            "pk": 2,
            "bank_name": "Another Bank",
            "account_holder": "AKINON TECHNOLOGIES",
            "iban": "TR330006100519786457841327",
            "currency": "USD",
            "is_active": true
          }
        ]
      }
    }
  ],
  "pre_order": {
    "basket": {
      "pk": 123,
      "total_amount": "150.00"
    },
    "shipping_address": {
      "pk": 10,
      "first_name": "John",
      "last_name": "Doe"
    },
    "billing_address": {
      "pk": 10,
      "first_name": "John",
      "last_name": "Doe"
    },
    "payment_option": {
      "pk": 3,
      "name": "Bank Transfer",
      "slug": "bank-transfer",
      "payment_type": "funds_transfer",
      "payment_type_label": "Bank Transfer"
    },
    "funds_transfer_bank": null,
    "total_amount": "159.99",
    "unpaid_amount": "159.99",
    "currency_type_label": "USD"
  },
  "errors": [],
  "template_name": "orders/checkout.html"
}

Last updated

Was this helpful?