The only functional library for GoPay payment gateway.
$ npm i @fronebdev/gopay-js
# or if you are using Yarn
$ yarn add @fronebdev/gopay-js
- init
- getToken()
const gp = new goPay({
log: true,
enviroment: "test",
credentials: {
clientID: "1390489727",
clientSecret: "9G9ha7Qa",
},
});
All methodes included in library.
the getToken() method returns all the necessary keys, to work with GoPay here is example.:
{
"token_type": "bearer",
"access_token": "token",
"expires_in": 1800,
"refresh_token": "token"
}
gopay-js is licensed under MIT. See the LICENSE file.