1.0.7 • Published 8 years ago

bitpos-node v1.0.7

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

bitpos-node

A Small Node.js Wrapper for Bitpos.me

Wesite: https://bitpos.me

API documentation : https://github.com/bitpos/api-doc

Installation

npm install bitpos-node --save

Usage

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;
	});

Tests

npm test

Contributing

Contact or fork.

Email : richardmacarthy@hotmail.com

Website : www.cryptogrind.com

Release History

  • 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
1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago