6.0.0 • Published 10 months ago

gamemoney v6.0.0

Weekly downloads
121
License
MIT
Repository
github
Last release
10 months ago

GameMoney

GameMoney API wrapper for Node.js

Full API documentation here

Installation

$ npm install gamemoney

Usage

Initialization

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',
	// )
})

Examples

See examples in src/examples directory

6.0.0

10 months ago

5.0.0

1 year ago

4.3.0

1 year ago

4.2.0

2 years ago

4.1.0

2 years ago

4.0.1

2 years ago

4.0.0

2 years ago

4.1.1

2 years ago

3.1.0

4 years ago

3.0.0

4 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago