GPAY_BIN_NUMBER

Type: string Default: "GPAY00" Description: The BIN number used to look up the virtual card record for Garanti Pay (GPay) transactions.

Configured in settings.py as a plain Django setting:

GPAY_BIN_NUMBER = "GPAY00"
  • The value is used during GPaySelectionPage processing to retrieve a BinNumber object and its associated card from the database. The resulting card information is stored in the checkout session as card_info and the order number is assigned.

  • If no BinNumber record matching this value exists in the database, the order number is reset and card_info is cleared, causing the preconditions for GPayRedirectPage to fail and routing the user back to the payment option selection step.

  • The default value "GPAY00" is used when the setting is not explicitly defined in settings.py.

Used in: GPaySelectionPage.process_pre_order() — BIN number lookup for GPay virtual card assignment. Indirectly affects GPayRedirectPage preconditions (check_card_info_not_empty, check_order_number_not_empty).

Last updated

Was this helpful?