Skip to content
This repository has been archived by the owner on Dec 11, 2022. It is now read-only.

fontis/bpay-ref-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages