Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.
/ oyindonesia-php Public archive

This is the Unofficial PHP wrapper/library for Oyindonesia Payment API, that is compatible with Composer. See documentation at https://api-docs.oyindonesia.com/ for more technical details.

License

Notifications You must be signed in to change notification settings

reactmore/oyindonesia-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oyindonesia-PHP

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.

1. Installation

1.a Composer Installation

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.

2. Use

1.Set Configuration and Use Get

// 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>';

2.Set Configuration and Use Post

// 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>';

3. Method

Configure the client

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);

Methods

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

About

This is the Unofficial PHP wrapper/library for Oyindonesia Payment API, that is compatible with Composer. See documentation at https://api-docs.oyindonesia.com/ for more technical details.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages