PHP code example of shahmal1yev / php-yigim

1. Go to this page and download the library: Download shahmal1yev/php-yigim 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/ */

    

shahmal1yev / php-yigim example snippets


composer 

use EasyPay\PHP\Yigim\Facades;

$initializationCommand = CommandFacade::initialization()->fieldBuilder()
    ->setReference("REF0001")
    ->setType("SMS")
    ->setToken("CRD0001")
    ->setSave("y")
    ->setAmount(1000)
    ->setCurrency("994")
    ->setBiller("BLR001")
    ->setDescription("Test payment")
    ->setTemplate("TPL0001")
    ->setXMerchant("Merchant")
    ->setSignature("OaDZaBl6b13xIP+U9nulYQ==")
    ->setXType("JSON");

$responseContract = $initializationCommand->execute();

echo $responseContract->getUrl();