Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitpos-node

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitpos-node

Node.js Wrapper for Bitpos

  • 1.0.7
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 01 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc