GameMoney API wrapper for Node.js
Full API documentation here
$ npm install gamemoney
import fs from 'fs'
import GameMoney from 'gamemoney'
const gm = new GameMoney({
project: 42,
hmacPrivateKey: 'test',
// Optional. But to make checkouts must be specified
rsaPrivateKey: {
key: fs.readFileSync('./private.pem').toString(),
passphrase: '123' // Optional
},
// OR:
// rsaPrivateKey: Buffer.from(
// process.env.GM_RSA_PRIVATE_KEY ?? '',
// 'base64',
// )
})
See examples in src/examples directory