PHP code example of namdongvando / cardbrick

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

    

namdongvando / cardbrick example snippets



php

use CardBrick\doithecaoonline;
 
doithecaoonline::SetPartnerKey("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");

$doithecaoonline = new doithecaoonline();

$doithecaoonline->telco = "VIETTEL";
$doithecaoonline->amount = "300000";
$doithecaoonline->serial = "yyyyyyyyyyyy";
$doithecaoonline->code = "zzzzzzzzzzzz";
$doithecaoonline->transaction_id = "123456789";
$doithecaoonline->is_fast = 0;
$res = $doithecaoonline->PartnerAddCard();

var_dump($res);