<?php
// Banks configuration and logo mapping
// This file provides fallback bank logo mapping

// Bank code to logo mapping
$banksConfig = [
    // Add bank codes here if needed
];

// Function to get bank logo by BIN range or code
function getBankLogo($code) {
    // Convert to string and get first 6 digits
    $codeStr = (string)$code;
    $bin6 = substr($codeStr, 0, 6);
    
    // Check specific BIN ranges
    if (substr($bin6, 0, 5) == '40007') {
        return 'uni.png';
    }
    if (substr($bin6, 0, 5) == '11000') {
        return 'bwa.png';
    }
    if (substr($bin6, 0, 5) == '43009') {
        return 'Volnk.png';
    }
    if (substr($bin6, 0, 5) == '15000') {
        return 'or.png';
    }
    
    // Return empty if no match
    return '';
}

return $banksConfig;

