Skip to content

The only functional library for GoPay payment gateway.

License

Notifications You must be signed in to change notification settings

fronebdev/gopay-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPlogo

gopay-js

The only functional library for GoPay payment gateway.

⚡️ Getting Started

Installation

$ npm i @fronebdev/gopay-js
# or if you are using Yarn
$ yarn add @fronebdev/gopay-js

🖇 Documentation

Tree

  • init
  • getToken()

Initialization

const gp = new goPay({
  log: true,
  enviroment: "test",
  credentials: {
    clientID: "1390489727",
    clientSecret: "9G9ha7Qa",
  },
});

Methodes

All methodes included in library.

getToken()

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"
}

🙅🏿‍♂️ Used OSS

⭐️ License

gopay-js is licensed under MIT. See the LICENSE file.