dooooz / bpay-ref-generator

Library to generate BPAY reference codes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fontis BPAY Customer Ref Generator

This package provides a convenient way of generating customer reference numbers for BPAY. There are functions to calculate reference numbers based on both the MOD 10 Version 1 and MOD 10 Version 5 algorithms.

The recommended way to install this package is using Composer. If you don't already have Composer installed, you can install it using the instructions mentioned on the Composer documentation. Once you have composer installed, just install it like so:

composer require fontis/bpay-ref-generator 1.0.*

Using this package is very simple. Instantiate an instance of the Generator class like so:

use Fontis\BpayRefGenerator\Generator;

$generator = new Generator();

Then call the appropriate method based on which algorithm you want to use. For MOD 10 Version 1:

$ref = $generator->calcMod10V1("10000456");
// 100004563

For MOD 10 Version 5:

$ref = $generator->calcMod10V5("40007923");
// 400079231

About

Library to generate BPAY reference codes

License:Open Software License 3.0


Languages

Language:PHP 100.0%