Oyindonesia ❤️ PHP!
This is the Unofficial PHP wrapper/library for Oyindonesia Payment API, that is compatible with Composer. Visit https://oyindonesia.com/ for more information about the product and see documentation at https://api-docs.oyindonesia.com/ for more technical details.
If you are using Composer, you can install via composer CLI:
composer require reactmore/oyindonesia-php
or
add this require line to your composer.json
file:
{
"require": {
"reactmore/oyindonesia-php": "*"
}
}
and run composer install
on your terminal.
// load vendor
require_once "vendor/autoload.php";
// load Configurations
$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
require_once "vendor/autoload.php";
// load Configurations
$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>';
For the request params and responses please refer https://api-docs.oyindonesia.com/
$params = [
'apikey' => 'api_key_here',
'username' => 'username_here',
'production' => false,
];
Config::Configurations($params);
Get account details
Accountinquiry::getAccountinquiry($params);
Get All Invoices
Accountinquiry::Invoices();
Get Invoices By Id
Accountinquiry::InvoicesId($params);
Disbursement/Payout
Disbursement::remit($params);
Disbursement status
Disbursement::remitStatus($params);
Disbursement Schedule
Disbursement::scheduledRemit($params);
Get Balance Account
Disbursement::getBalance();
Api Checkout Create
ApiChekout::create($params);
Api Checkout Create Invoices
ApiChekout::createInvoice($params);
Api Checkout Status
ApiChekout::status($params);
ON PROGRESS