PHP code example of nasarbashag / yii2-nasarbashag-myfatoorah

1. Go to this page and download the library: Download nasarbashag/yii2-nasarbashag-myfatoorah 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/ */

    

nasarbashag / yii2-nasarbashag-myfatoorah example snippets


....
 "nbMyFatoorah" => [
        'Token' => "Occaecat non adipisicing velit officia reprehenderit non non ea velit ad minim.",
        'Url' => "Occaecat non adipisicing velit officia reprehenderit non non ea velit ad minim.",
        'SuccessUrl' => "Occaecat non adipisicing velit officia reprehenderit non non ea velit ad minim.",
        'ErrorUrl' => "Occaecat non adipisicing velit officia reprehenderit non non ea velit ad minim.",
        'Currency' => "Occaecat non adipisicing velit officia reprehenderit non non ea velit ad minim.",
    ],
...

$initPayment = new Embed();
$result = $initPayment->initiatePayment(amount: 100.00, currentcyIso : "KWD");
// this result will all the payment methods