JSPM

react-fps-hk-qrcode

1.0.7
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q45948F
  • License MIT

React component for displaying a Hong Kong Fast Payment System QR Code

Package Exports

  • react-fps-hk-qrcode

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-fps-hk-qrcode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Hong Kong Faster Payment System (FPS) QR Code React Component

Installing

npm install react-fps-hk-qrcode

Usage

Use in React App:

import FasterPaymentSystemQRCode from "react-fps-hk-qrcode"
...

<FasterPaymentSystemQRCode account="04" bank_code="004" email="email@example.com" mcc="0000" currency="344" amount="2000" reference=""/>

The following properties can be set (all are strings):

  • bank_code: The Hong Kong bank code for the bank hosting the FPS recipient account.
  • fps_id: The recipient FPS id
  • mobile: The recipient mobile number if used as FPS id
  • email: The recipient email if used as FPS id
  • mcc: Merchant Category Code as defined by ISO 18245 (default: 0000)
  • currency: The FPS currency code as defined by ISO 4217 (default HKD: 344)
  • amount: Transaction amount
  • reference: A payment reference code (not required)

Versioning

  • 1.0 - First Release

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details