🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

paynow-generator

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paynow-generator

Creates a string which can be encoded into a PayNow Compatible QR Code

1.0.7
latest
Source
npm
Version published
Weekly downloads
8
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

paynow

FAQs

Package last updated on 22 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts