Esempio n. 1
0
<?php

include 'cash2vnClient.php';
$apiKey = '[[ YOUR API KEY ]]';
$apiSecret = '[[ YOUR API SECRET ]]';
$apiUrl = 'https://www.cash2vn.com/api/v1';
$cash2vn = new cash2vnClient($apiKey, $apiSecret, $apiUrl);
$recipient = array('name' => 'Test Client 3000', 'email' => '*****@*****.**');
$delivery = array('option' => '0', 'HOLDER_OF_ACC' => 'Test Holder', 'BANK_NAME' => 'Bla bla Bank', 'BANK_BRANCH' => 'HCMC', 'ACC_NUMBER' => '12345');
$rsp = $cash2vn->submit(500000, $recipient, $delivery);
?>

<pre><?php 
echo print_r($rsp);
?>
</pre>