2017 © Pedro Peláez
 

library aeon

PHP integration for the Aeon switch

image

codechap/aeon

PHP integration for the Aeon switch

  • Thursday, October 29, 2015
  • by CodeChap
  • Repository
  • 2 Watchers
  • 1 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

AEON SWITCH

Travis, (*1)

3RD Party Electricity Integration Package, (*2)

What does this do?

Allows you to purchase electricity though Blue Label Telekoms API., (*3)

Integration

The package supports the following API requests, (*4)

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

Usage

Use composer to install it or simply include the files somewhere:, (*5)

    $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();

Todo

Support the following requests and or transaction types

Fault report
Fault list
Log fault

Questions

Ask me on twitter if you have any questions: @codeChap, (*6)

Disclaimer:

Use this library at your own risk, I take no responsibility what so ever for the use of it., (*7)

The Versions

29/10 2015

dev-master

9999999-dev https://github.com/codechap/aeon

PHP integration for the Aeon switch

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar CodeChap

electricity