Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/infinitypaul/cbs-php
A PHP Package for working with central billing system seamlessly
https://github.com/infinitypaul/cbs-php
Last synced: 8 days ago
JSON representation
A PHP Package for working with central billing system seamlessly
- Host: GitHub
- URL: https://github.com/infinitypaul/cbs-php
- Owner: infinitypaul
- License: mit
- Created: 2021-04-20T07:34:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-04-20T08:17:35.000Z (over 3 years ago)
- Last Synced: 2024-10-10T13:09:05.937Z (29 days ago)
- Language: PHP
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# CBS FOR PHP
[comment]: <> ([![Latest Version on Packagist](https://img.shields.io/packagist/v/infinitypaul/cbs-php.svg?style=flat-square)](https://packagist.org/packages/infinitypaul/cbs-php))
[comment]: <> ([![Build Status](https://img.shields.io/travis/infinitypaul/cbs-php/master.svg?style=flat-square)](https://travis-ci.org/infinitypaul/cbs-php))
[comment]: <> ([![Quality Score](https://img.shields.io/scrutinizer/g/infinitypaul/cbs-php.svg?style=flat-square)](https://scrutinizer-ci.com/g/infinitypaul/cbs-php))
[comment]: <> ([![Total Downloads](https://img.shields.io/packagist/dt/infinitypaul/cbs-php.svg?style=flat-square)](https://packagist.org/packages/infinitypaul/cbs-php))
A PHP Package for working with central billing system seamlessly
## Installation
You can install the package via composer:
```bash
composer require infinitypaul/cbs-php
```## Usage
``` php
Infinitypaul\Cbs\Cbs::setup([
'staging' => 'staging base url',
'live' => 'live base url'],
'Secrey Key',
'Client ID', 'Mode = staging or live');
//To redirect to CBS Payment Gateway
\Infinitypaul\Cbs\CbsCall::addBody('RevenueHeadId', 1)
->addBody('TaxEntityInvoice', [
'Amount' => 1000,
"InvoiceDescription" => "talosopekope",
"AdditionalDetails" => [],
"CategoryId" => 1,
"TaxEntity" => [
'Recipient' => 'Tax Payer',
'Email' => '[email protected]',
'Address' => 'api Local',
'PhoneNumber' => '0903636363',
'TaxPayerIdentificationNumber' => '736363',
'RCNumber' => null,
'PayerId' => null
]])
->addBody('ExternalRefNumber', 373737373)
->addBody('RequestReference', 'jdjd783')
->addBody('CallBackURL', 'https://coeakwanga.edu.ng/controller/plugin/cbs/verify.php')
->getAuthorizationUrl()
->redirectNow();
//Get Data
\Infinitypaul\Cbs\CbsCall::addBody('RevenueHeadId', 1)
->addBody('TaxEntityInvoice', [
'Amount' => 1000,
"InvoiceDescription" => "talosopekope",
"AdditionalDetails" => [],
"CategoryId" => 1,
"TaxEntity" => [
'Recipient' => 'Tax Payer',
'Email' => '[email protected]',
'Address' => 'api Local',
'PhoneNumber' => '0903636363',
'TaxPayerIdentificationNumber' => '736363',
'RCNumber' => null,
'PayerId' => null
]])
->addBody('ExternalRefNumber', 373737373)
->addBody('RequestReference', 'jdjd783')
->addBody('CallBackURL', 'https://coeakwanga.edu.ng/controller/plugin/cbs/verify.php')
->getAuthorizationUrl()
->getData();
```### Testing
``` bash
composer test
```### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
### Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Credits
- [Paul Edward](https://github.com/infinitypaul)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.