| Package Data | |
|---|---|
| Maintainer Username: | hamzahjamad |
| Maintainer Contact: | ibrahim@klsandbox.com (Ibrahim Abdul Rahim) |
| Package Create Date: | 2017-01-05 |
| Package Last Update: | 2017-01-26 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-19 15:15:56 |
| Package Statistics | |
|---|---|
| Total Downloads: | 288 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 2 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
This client is a simple Billplz client that can be used with Laravel 5. You may check their api for full documentation.
After installing via composer, simply use it by creating a new object and put the Api key as it argument.
$billplz = new \Klsandbox\BillPlz\BillPlz("Token_here");
To use the Sandbox Mode api, just pass false as a second argument.
$billplz = new \Klsandbox\BillPlz\BillPlz("Token_here" , false);
$billplz = new \Klsandbox\BillPlz\BillPlz("Token_here");
$billplz->setCollection(['title'=>'Ahmad Shop']);
$billplz = new \Klsandbox\BillPlz\BillPlz("Token_here");
$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);
setCollection(array $data)
setOpenCollection(array $data)
deactivateCollection($collection_id)
activateCollection($collection_id)
setBill(array $data)
getBill($bill_id)
deleteBill($bill_id)
verifyAccount($bank_account)
To run the test, create a new secret-env-plain file. In this file, put this two line,
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.
If you discover a security vulnerability within this BillPlz client, please send an e-mail to Ibrahim Abdul Rahim at ibrahim@klsandbox.com.
This client are open-sourced software licensed under the MIT license.