/node-gbprimepay

Unofficial Node.js Library for GB Prime Pay with helper included to seamlessly integrate into your backend

Primary LanguageTypeScriptMIT LicenseMIT

node-gbprimepay

Unofficial Node.js Library for GB Prime Pay with helper included to seamlessly integrate into your backend

Note

Still WIP, but contributions are welcome!

Features

  • Written in TypeScript
  • Does Checksum things for you
  • No more HTML forms in frontend, your secret key will never leak again
  • Tries to replace bad UX HTML pages with direct link to Payment services or App Deeplink

What will the create() method return?

By default the library will tries to parse data from HTML page returned from GB Prime Pay API and will give you a direct link (vary by channel), but you can revert this by set argument raw as true

  • LINEPAY will returns Rabbit LINE Pay Checkout URL Page
  • TRUEWALLET will returns ptx_id for requesting OTP with truemoney_sendOtp() or truemoney_resendOtp() then submit using truemoney_submitOtp()
  • MOBILE_BANKING vary by Bank Code
    • 014 will returns SCB EASY App Deeplink scbeasy://
    • 002 will returns Bualuang mBanking App Deeplink bualuangmbanking://

Other channels are untested and will return unparsed HTML/JSON

References

License

This project is MIT licensed (see LICENSE)

Not affiliated with Global Prime Corporation Co., Ltd. (GB Prime Pay) in any way,

Trademarks belongs to their respective owner.