PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Edward Paul   PHP Central Billing System   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Central Billing System
Charge payments from customers using CBS API
Author: By
Last change:
Date: 3 years ago
Size: 3,429 bytes
 

Contents

Class file image Download

CBS FOR PHP

[comment]: <> ([![Latest Version on Packagist]&#40;https://img.shields.io/packagist/v/infinitypaul/cbs-php.svg?style=flat-square&#41;]&#40;https://packagist.org/packages/infinitypaul/cbs-php&#41;)

[comment]: <> ([![Build Status]&#40;https://img.shields.io/travis/infinitypaul/cbs-php/master.svg?style=flat-square&#41;]&#40;https://travis-ci.org/infinitypaul/cbs-php&#41;)

[comment]: <> ([![Quality Score]&#40;https://img.shields.io/scrutinizer/g/infinitypaul/cbs-php.svg?style=flat-square&#41;]&#40;https://scrutinizer-ci.com/g/infinitypaul/cbs-php&#41;)

[comment]: <> ([![Total Downloads]&#40;https://img.shields.io/packagist/dt/infinitypaul/cbs-php.svg?style=flat-square&#41;]&#40;https://packagist.org/packages/infinitypaul/cbs-php&#41;)

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' => '[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

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 [email protected] instead of using the issue tracker.

Credits

License

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