infinitypaul/cbs-php

A PHP Package for working with central billing system seamlessly

0.0.1 2021-04-20 08:14 UTC

This package is auto-updated.

Last update: 2022-05-20 11:01:38 UTC


README

A PHP Package for working with central billing system seamlessly

Installation

You can install the package via composer:

composer require infinitypaul/cbs-php

Usage

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' => 'infinitypaul@live.com',
            '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' => 'infinitypaul@live.com',
            '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

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email infinitypaul@live.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.