billplz/billplz-api

3.7.2 2018-02-23 13:07 UTC

README

Latest Stable Version Total Downloads Latest Unstable Version License

Minimum System Requirement

  • PHP 7.0 or newer

Installation

To install through composer, simply execute:

composer require billplz/billplz-api guzzlehttp/guzzle

or

{
    "require": {
        "billplz/billplz-api": "^3.7",
        "guzzlehttp/guzzle": "~6.0"
    }
}

Usages

Connecting with Billplz API

By it's design, the Connect class are able to determine the API Key is belong to Production or Staging environment.

<?php

use Billplz\Connect;
$connnect = (new Connect('4e49de80-1670-4606-84f8-2f1d33a38670'))->detectMode();

// Or manually set the mode
$connnect = new Connect('4e49de80-1670-4606-84f8-2f1d33a38670');
$connect->setMode(true);

Other

Please open an issue or email to wan@billplz.com