<?php

use App\Core\Payment\Pos\EstPos;
use App\Core\Payment\Pos\GarantiPos;
use App\Core\Payment\Pos\PosNet;
use App\Core\Payment\Pos\VPos;
use App\Core\Payment\Pos\QPos;
use App\Core\Payment\Pos\VkfPos;
use App\Core\Payment\Pos\EstPosV3;
use App\Core\Payment\Pos\AkPos;

return [

    // Currencies
    'currencies' => [
        'TRY' => 949,
        'USD' => 840,
        'EUR' => 978,
        'GBP' => 826,
        'JPY' => 392,
        'RUB' => 643,
    ],

    // Banks
    'banks' => [
        'akbank' => [
            'name' => 'AKBANK T.A.S.', ////Test - 5571135571135575, 12, 2026, 000, a
            'class' => AkPos::class,//EstPos::class,
            'urls' => [
                'production' => 'https://api.akbank.com/api/v1/payment/virtualpos/transaction/process',
                'test' => 'https://apipre.akbank.com/api/v1/payment/virtualpos/transaction/process',
                'gateway' => [
                    'production' => 'https://virtualpospaymentgateway.akbank.com/securepay',
                    'test' => 'https://virtualpospaymentgatewaypre.akbank.com/securepay',
                ],
            ]
        ],
        'denizbank' => [ //https://test.inter-vpos.com.tr, 3123, InterTest11, InterTest11
            'name' => 'DENIZ BANK', //Test - 4090700090840057, 11, 2022, 592, 123
            'class' => VPos::class,
            'urls' => [
                'production' => 'https://spos.denizbank.com/mpi/Default.aspx',
                'test' => 'https://sanaltest.denizbank.com/mpi/Default.aspx',
                'gateway' => [
                    'production' => 'https://spos.denizbank.com/mpi/Default.aspx',
                    'test' => 'https://sanaltest.denizbank.com/mpi/Default.aspx',
                ],
            ]
        ],
        'ziraat' => [
            'name' => 'Ziraat Bankası',
            'class' => EstPosV3::class,//EstPos::class,
            'urls' => [
                'production' => 'https://sanalpos2.ziraatbank.com.tr/fim/api',
                'test' => 'https://entegrasyon.asseco-see.com.tr/fim/api',
                'gateway' => [
                    'production' => 'https://sanalpos2.ziraatbank.com.tr/fim/est3dgate',
                    'test' => 'https://entegrasyon.asseco-see.com.tr/fim/est3Dgate',
                ],
            ]
        ],
        'finansbank' => [
            'name' => 'QNB Finansbank',
            'class' => QPos::class,
            'urls' => [
                'production' => 'https://vpos.qnbfinansbank.com/Gateway/Default.aspx',
                'test' => 'https://vpostest.qnbfinansbank.com/Gateway/Default.aspx',
                'gateway' => [
                    'production' => 'https://vpos.qnbfinansbank.com/Gateway/Default.aspx',
                    'test' => 'https://vpostest.qnbfinansbank.com/Gateway/Default.aspx',
                ],
            ]
        ],
        'vakifbank' => [
            'name' => 'Vakıfbank',
            'class' => VkfPos::class,
            'urls' => [
                'production' => 'https://onlineodeme.vakifbank.com.tr:4443/VposService/v3/Vposreq.aspx',
                'test' => 'https://onlineodemetest.vakifbank.com.tr:4443/VposService/v3/Vposreq.aspx',
                'gateway' => [
                    'production' => 'https://3dsecure.vakifbank.com.tr/MPIAPI/MPI_Enrollment.aspx',
                    'test' => 'https://3dsecuretest.vakifbank.com.tr/MPIAPI/MPI_Enrollment.aspx',
                ],
            ]
        ],
        'turkiyefinans' => [ //TODO: Check this infos
            'name' => 'Türkiye Finans',
            'class' => EstPosV3::class,//EstPos::class,
            'urls' => [
                'production' => 'https://www.fbwebpos.com/fim/api',
                'test' => 'https://entegrasyon.asseco-see.com.tr/fim/api',
                'gateway' => [
                    'production' => 'https://www.fbwebpos.com/fim/est3dgate',
                    'test' => 'https://entegrasyon.asseco-see.com.tr/fim/est3Dgate',
                ],
            ]
        ],
        'halkbank' => [
            'name' => 'Halkbank',
            'class' => EstPosV3::class,
            'urls' => [
                'production' => 'https://sanalpos.halkbank.com.tr/fim/api',
                'test' => 'https://entegrasyon.asseco-see.com.tr/fim/api',
                'gateway' => [
                    'production' => 'https://sanalpos.halkbank.com.tr/fim/est3dgate',
                    'test' => 'https://entegrasyon.asseco-see.com.tr/fim/est3Dgate',
                ],
            ]
        ],
        'teb' => [
            'name' => 'TEB',
            'class' => EstPosV3::class,//EstPos::class,
            'urls' => [
                'production' => 'https://sanalpos.teb.com.tr/fim/api',
                'test' => 'https://entegrasyon.asseco-see.com.tr/fim/api',
                'gateway' => [
                    'production' => 'https://sanalpos.teb.com.tr/fim/est3Dgate',
                    'test' => 'https://entegrasyon.asseco-see.com.tr/fim/est3Dgate',
                ],
            ]
        ],
        'ingbank' => [
            'name' => 'ING Bank',
            'class' => EstPosV3::class,//EstPos::class,
            'urls' => [
                'production' => 'https://sanalpos.ingbank.com.tr/fim/api',
                'test' => 'https://entegrasyon.asseco-see.com.tr/fim/api',
                'gateway' => [
                    'production' => 'https://sanalpos.ingbank.com.tr/fim/est3Dgate',
                    'test' => 'https://entegrasyon.asseco-see.com.tr/fim/est3Dgate',
                ],
            ]
        ],
        'isbank' => [
            'name' => 'İşbank',
            'class' => EstPosV3::class,//EstPos::class,
            'urls' => [
                'production' => 'https://sanalpos.isbank.com.tr/fim/api',
                'test' => 'https://entegrasyon.asseco-see.com.tr/fim/api',
                'gateway' => [
                    'production' => 'https://sanalpos.isbank.com.tr/fim/est3Dgate',
                    'test' => 'https://entegrasyon.asseco-see.com.tr/fim/est3Dgate',
                ],
            ]
        ],
        'isbank-payflex' => [
            'name' => 'İşbank - PayFlex',
            'class' => Mews\Pos\PayFlex::class,
            'urls' => [
                'production' => 'https://trx.payflex.com.tr/VposWeb/v3/Vposreq.aspx',
                'test' => 'https://sanalpos.innova.com.tr/ISBANK_v4/VposWeb/v3/Vposreq.aspx',
                'gateway' => [
                    'production' => 'https://mpi.vpos.isbank.com.tr/MPIEnrollment.aspx',
                    'test' => 'https://sanalpos.innova.com.tr/ISBANK/MpiWeb/Enrollment.aspx',
                ],
            ]
        ],
        'yapikredi' => [
            'name' => 'Yapıkredi',
            'class' => PosNet::class,
            'urls' => [
                'production' => 'https://posnet.yapikredi.com.tr/PosnetWebService/XML',
                'test' => 'https://setmpos.ykb.com/PosnetWebService/XML',
                'gateway' => [
                    'production' => 'https://posnet.yapikredi.com.tr/3DSWebService/YKBPaymentService',
                    'test' => 'https://setmpos.ykb.com/3DSWebService/YKBPaymentService',
                ],
            ],
            'order' => [
                'id_total_length' => 24,
                'id_length' => 20,
                'id_3d_prefix' => 'TDSC',
                'id_3d_pay_prefix' => '', //?
                'id_regular_prefix' => '' //?
            ]
        ],
        'garanti' => [
            'name' => 'Garanti',
            'class' => GarantiPos::class,
            'urls' => [
                'production' => 'https://sanalposprov.garanti.com.tr/VPServlet',
                'test' => 'https://sanalposprovtest.garanti.com.tr/VPServlet',
                'gateway' => [
                    'production' => 'https://sanalposprov.garanti.com.tr/servlet/gt3dengine',
                    'test' => 'https://sanalposprovtest.garanti.com.tr/servlet/gt3dengine',
                ],
            ]
        ]
    ],

];
//STRIPE
//4000000000003063 3D required
//4000000000003089 3D recommended
//4000000000003055 3d optional
//378282246310005  3d not_supported direct pay

//Vakıfbank
//4938460158754205 2024/11 715 123456
//4119790155203496 2024/04 579 123456
//4119790166544284 2024/04 961 123456
//6501700161161969 2024/11 390 123456
