paynow-generator

1.0.7 • Public • Published

PayNow Generator

The PayNow Generator will create a PayNow compatible string containing payment information. This string is then encoded into a QR code to create a PayNow compatible QR code which can be scanned using the mobile banking app of any participating bank in Singapore.

You will need to ensure that the PayNow alias/proxy (phone number or UEN) has been linked to a bank account for this to work.

Installation

Use npm to install the PayNow Generator.

npm install paynow-generator

Usage

const paynow = require('paynow-generator').paynowGenerator
 
let payNowString = paynow('proxyType','proxyValue','edit',price,'merchantName','additionalComments')
 

Fields

  • proxyType: 'mobile' or 'UEN'
  • proxyValue: 8 digit Singapore phone number or company UEN
  • edit: 'yes' or 'no' - Defined whether the price value can be edited by the user
  • price: number input - sets the value of the payment request
  • merchantName (Optional) : Defines the merchant name (returns NA if blank)
  • additionalComments(Optional) : Additional data field typically used to generate strings used for reconciliation purposes

License

MIT

Package Sidebar

Install

npm i paynow-generator

Weekly Downloads

1

Version

1.0.7

License

ISC

Unpacked Size

6.38 kB

Total Files

3

Last publish

Collaborators

  • jtaych