codechap/aeon

此包已被放弃,不再维护。未建议替代包。

Aeon开关的PHP集成

dev-master 2015-10-29 12:02 UTC

This package is not auto-updated.

Last update: 2023-02-07 10:18:23 UTC


README

Travis

第三方电力集成包

这个包做什么?

允许您通过Blue Label Telekoms API购买电力。

集成

该包支持以下API请求

Authentication and meter confirmation
Get Voucher
Sold Voucher
Reprint Voucher
Account information

用法

使用composer安装它或简单地将文件包含在某个地方

    $config = array(
            'ip' => '196.38.158.118',
            'port' => '7898',
            'DeviceId' => '2002',
            'DeviceSer' => 'xxxx',
            'UserPin' => 'xxxx'
        );

    $meterNumber = '01060029501';
    $rands = '120';
    $reference = 'Testing Normal voucher request';

    // Request a voucher
    $aeon = new CodeChap\Aeon($this->config);
    $aeon[] = new CodeChap\Request\Electricity($meterNumber, $rands, $reference);
    $aeon->execute();

    // If the above is accpeted you can ask the user to make payment with what ever methods you choose //

    // Confirm the sale
    $aeon = new CodeChap\Aeon($this->config);
    $aeon[] = new CodeChap\Request\Confirm($meterNumber);
    $aeon->execute();

待办事项

Support the following requests and or transaction types

Fault report
Fault list
Log fault

问题

如果您有任何问题,请在twitter上问我:@codeChap

免责声明

自行承担使用此库的风险,我对使用它不承担任何责任。