reactmore/oyindonesia-php

This package is abandoned and no longer maintained. No replacement package was suggested.

PHP Wrapper for Oyindonesia Payment API.

1.0.3 2021-01-06 11:37 UTC

This package is auto-updated.

Last update: 2021-09-07 15:00:47 UTC


README

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