PHP code example of tcgunel / omnipay-tosla

1. Go to this page and download the library: Download tcgunel/omnipay-tosla library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tcgunel / omnipay-tosla example snippets


$gateway->purchase([
    'secure'      => true,
    'amount'      => '100.00',
    'currency'    => 'TRY',
    'installment' => 3,
    'hasInstallmentComission' => 1,
    'totalAmount' => '101.01', // installmentOptions() çıktısındaki ilgili taksitin tutarı
    // ...
]);