A Small Node.js Wrapper for Bitpos.me
Wesite: https://bitpos.me
API documentation : https://github.com/bitpos/api-doc
npm install bitpos-node --save
Require bitpos-node
var bitpos = require('bitpos-node');
Instantiate
var bp = new bitpos({
username : 'apiusername',
password : 'apipassword'
});
Create an order
var order = {
"currency": "AUD",
"amount": 100,
"reference": "reference",
"description": "description",
"successURL": "http://www.localhost.com/success",
"failureURL": "http://www.localhost.com/fail",
}
bp.create(order, function(err, order) {
//order returned;
});
Check order status
bp.status('encodedOrderId', function(err, status) {
//status returned;
});
npm test
Contact or fork.
Email : [email protected]
Website : www.cryptogrind.com
- 1.0.0 Initial release
- 1.0.3 Fixed bug with order status
- 1.0.4 Added test or live net switch.
- 1.0.5 Fixed an obvious bug
- 1.0.6 Fixed bug with error callback
- 1.0.7 Cleanup