PHP code example of reactmore / oyindonesia-php
1. Go to this page and download the library: Download reactmore/oyindonesia-php 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/ */
reactmore / oyindonesia-php example snippets
// load vendor
gurations
$params = [
'apikey' => 'api_key_here',
'username' => 'username_here',
'production' => false,
];
\Oyindonesia\Config::Configurations($params);
/**
* Send GET request to Check Balance
*/
$result = \Oyindonesia\Accountinquiry::balance();
echo '<pre>';
var_dump($result);
echo '</pre>';
// load vendor
urations
$params = [
'apikey' => 'api_key_here',
'username' => 'username_here',
'production' => false,
];
\Oyindonesia\Config::Configurations($params);
$data = array(
"bank_code" => "014",
"account_number" => "1239812390"
);
$result = \Oyindonesia\Accountinquiry::getAccountinquiry($data);
echo '<pre>';
var_dump($result);
echo '</pre>';
$params = [
'apikey' => 'api_key_here',
'username' => 'username_here',
'production' => false,
];
Config::Configurations($params);
Accountinquiry::getAccountinquiry($params);
Accountinquiry::Invoices();
Accountinquiry::InvoicesId($params);
Disbursement::remit($params);
Disbursement::remitStatus($params);
Disbursement::scheduledRemit($params);
Disbursement::getBalance();
ApiChekout::create($params);
ApiChekout::createInvoice($params);
ApiChekout::status($params);
composer
json
{
"eactmore/oyindonesia-php": "*"
}
}