Unofficial Node.js Library for GB Prime Pay with helper included to seamlessly integrate into your backend
Still WIP, but contributions are welcome!
- 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
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
LINEPAYwill returns Rabbit LINE Pay Checkout URL PageSHOPEEPAYwill returns ShopeePay Checkout URL PageTRUEWALLETwill returnsptx_idfor requesting OTP withtruemoney_sendOtp()ortruemoney_resendOtp()then submit usingtruemoney_submitOtp()MOBILE_BANKINGvary by Bank Code014will returns SCB EASY App Deeplinkscbeasy://002will returns Bualuang mBanking App Deeplinkbualuangmbanking://
Other channels are untested and will return unparsed HTML/JSON
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.