2017 © Pedro Peláez
 

library billplz

Just another Billplz package for Laravel

image

klsandbox/billplz

Just another Billplz package for Laravel

  • Thursday, January 26, 2017
  • by hamzahjamad
  • Repository
  • 2 Watchers
  • 0 Stars
  • 77 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

BillPlz Client For Laravel

Build Status, (*1)

This client is a simple Billplz client that can be used with Laravel 5. You may check their api for full documentation., (*2)

How To Use

After installing via composer, simply use it by creating a new object and put the Api key as it argument., (*3)

$billplz = new \Klsandbox\BillPlz\BillPlz("Token_here");, (*4)

To use the Sandbox Mode api, just pass false as a second argument., (*5)

$billplz = new \Klsandbox\BillPlz\BillPlz("Token_here" , false);, (*6)

Create a new collection.

$billplz = new \Klsandbox\BillPlz\BillPlz("Token_here");, (*7)

$billplz->setCollection(['title'=>'Ahmad Shop']);, (*8)

Create a new bill.

$billplz = new \Klsandbox\BillPlz\BillPlz("Token_here");, (*9)

$data = [
        "collection_id" => "some_collection_id",
        "description" => "some_description",
        "name" => "test",
        "email" => "test@example.com",
        "amount" => 300,
        "callback_url" => "https://test.com/test",
        ];        

$billplz->setBill($data);, (*10)

List of available method

Collection

  • setCollection(array $data)
  • setOpenCollection(array $data)
  • deactivateCollection($collection_id)
  • activateCollection($collection_id)

Bill

  • setBill(array $data)
  • getBill($bill_id)
  • deleteBill($bill_id)

Bank Account

  • verifyAccount($bank_account)

Run Test File

To run the test, create a new secret-env-plain file. In this file, put this two line,, (*11)

TOKEN=PUT_TOKEN_HERE
BANK_ACC=PUT_BANK_ACCOUNT_HERE

replace the PUT_TOKEN_HERE and PUT_BANK_ACCOUNT_HERE text with the token and bank account you filled on the staging server. The test will run using the staging server api., (*12)

Security Vulnerabilities

If you discover a security vulnerability within this BillPlz client, please send an e-mail to Ibrahim Abdul Rahim at ibrahim@klsandbox.com., (*13)

License

This client are open-sourced software licensed under the MIT license., (*14)

The Versions

26/01 2017

dev-master

9999999-dev

Just another Billplz package for Laravel

  Sources   Download

MIT

The Requires

  • php ^5.3.3 | ^7.0

 

The Development Requires

by Ibrahim Abdul Rahim

26/01 2017

v1.0.1

1.0.1.0

Just another Billplz package for Laravel

  Sources   Download

MIT

The Requires

  • php ^5.3.3 | ^7.0

 

The Development Requires

by Ibrahim Abdul Rahim

05/01 2017

v1.0

1.0.0.0

Just another Billplz package for Laravel

  Sources   Download

MIT

The Requires

  • php ^5.3.3 | ^7.0

 

The Development Requires

by Ibrahim Abdul Rahim