<commit_before><?php

/*
Omnipay-Paratika

Paratika (Asseco) MOTO/3D gateway for Omnipay payment processing library

İnsya Bilişim Teknolojileri
http://insya.com

@yasinkuyu
07.06.2017
*/

require __DIR__ . '/vendor/autoload.php';

use Omnipay\Omnipay;

$gateway = Omnipay::create('Paratika');
$gateway->setMerchant('10000000');
$gateway->setMerchantUser('<EMAIL>');
$gateway->setMerchantPassword('<PASSWORD>');
$gateway->setBank('ISBANK');
<commit_msg>Update session.php<commit_after><?php

/*
Omnipay-Paratika

Paratika (Asseco) MOTO/3D gateway for Omnipay payment processing library

İnsya Bilişim Teknolojileri
http://insya.com

@yasinkuyu
07.06.2017
*/

require __DIR__ . '/vendor/autoload.php';

use Omnipay\Omnipay;

$gateway = Omnipay::create('Paratika');
$gateway->setMerchant('10000000');
$gateway->setMerchantUser('<EMAIL>');
$gateway->setMerchantPassword('<PASSWORD>');

$gateway->setBin("435508");
$gateway->setMode("api");

try {
    $cardNetwork = 'UNKNOWN';
    $options = [
        'queryAction'   => 'QUERYBIN'
    ];
 
    $response = $gateway->query($options)->send();

    if ($response->isSuccessful()) {

        $details = $response->getQueryDetails();
        if($details['responseCode'] = "00"){
            $cardNetwork = $details['bin']['cardNetwork'];
        }
        

    } else {
        exit($response->getMessage());
    }
 
 
} catch (\Exception $e) {
    echo $e->getMessage();
}

$gateway->setBank($cardNetwork);

{'fraction_non_alphanumeric': 0.17768595041322313, 'fraction_numerical': 0.028925619834710745, 'mean_word_length': 4.2644927536231885, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 24, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7617241', 'n_tokens_mistral': 573, 'n_tokens_neox': 539, 'n_words': 82}