# 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:

```python
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`).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apidocs.akinon.com/commerce-openapis/checkout/static-settings/gpay_bin_number.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
