infinitypaul/cbs-php

一个用于无缝处理中央计费系统的PHP包

0.0.1 2021-04-20 08:14 UTC

This package is auto-updated.

Last update: 2024-09-20 15:45:59 UTC


README

一个用于无缝处理中央计费系统的PHP包

安装

您可以通过composer安装此包

composer require infinitypaul/cbs-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' => '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();

测试

composer test

变更日志

请参阅变更日志以获取更多最近更改的信息。

贡献

请参阅贡献指南以获取详细信息。

安全

如果您发现任何与安全相关的问题,请通过infinitypaul@live.com发送电子邮件,而不是使用问题跟踪器。

鸣谢

许可证

MIT许可证(MIT)。请参阅许可证文件以获取更多信息。