PHP code example of maldopay / maldopay-php-sdk

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

    

maldopay / maldopay-php-sdk example snippets






$authRequest = new \MaldoPay\SDK\AuthRequest(
    81433,
    15,
    "Ivan",
    "Ivanov",
    "127.0.0.1",
    1235,
    345435345322,
    "[email protected]",
    "Etropole",
    "1980-01-01",
    100,
    "Test"
);

$Autohrization = new \MaldoPay\SDK\Authorization($authRequest);

$cepBankService = new \MaldoPay\SDK\Services\Cepbank();
$cepBankService->setServiceData1("2104144157120047");
$cepBankService->setServiceData2("5");

$transactionRequest = new \MaldoPay\SDK\TransactionRequest(
    $Autohrization,
    $cepBankService,
    12980,
    'cep_bank_live_111511',
    50,
    "test",
    "test.bg",
    "test.bg",
    "test.bg",
    "test.bg"
);


$transaction = new \MaldoPay\SDK\Transaction($transactionRequest)->Create();

composer