bitcore-payment-protocol
Payment Protocol (BIP70 and related) support for bitcore
Last updated 8 years ago by ematiu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install bitcore-payment-protocol 
SYNC missed versions from official npm registry.

Bitcore Payment Protocol

NPM Package Build Status Coverage Status

A module for bitcore that implements Payment Protocol and other related BIPs.

Getting Started

This library is distributed in both the npm packaging systems.

npm install bitcore-lib
npm install bitcore-payment-protocol

There are many examples of how to use it on the developer guide section for payment protocol. For example, the following code would verify a payment request:

var PaymentProtocol = require('bitcore-payment-protocol');

var body = PaymentProtocol.PaymentRequest.decode(rawbody);
var request = new PaymentProtocol().makePaymentRequest(body);

var version = pr.get('payment_details_version');
var pki_type = pr.get('pki_type');
var pki_data = pr.get('pki_data');
var serializedDetails = pr.get('serialized_payment_details');
var signature = pr.get('signature');

// Verify the signature
var verified = request.verify();

Contributing

See CONTRIBUTING.md on the main bitcore repo for information about how to contribute.

License

Code released under the MIT license.

Copyright 2013-2015 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc.

Current Tags

  • 8.1.1                                ...           latest (8 years ago)

21 Versions

  • 8.1.1                                ...           8 years ago
  • 8.1.0                                ...           8 years ago
  • 1.8.0                                ...           8 years ago
  • 1.7.0                                ...           9 years ago
  • 1.6.1                                ...           9 years ago
  • 1.6.0                                ...           9 years ago
  • 1.5.0                                ...           9 years ago
  • 1.2.2                                ...           10 years ago
  • 1.1.0                                ...           11 years ago
  • 1.0.1                                ...           11 years ago
  • 1.0.0                                ...           11 years ago
  • 0.13.0                                ...           11 years ago
  • 0.12.0                                ...           11 years ago
  • 0.11.0                                ...           12 years ago
  • 0.10.2                                ...           12 years ago
  • 0.10.1                                ...           12 years ago
  • 0.10.0                                ...           12 years ago
  • 0.9.1                                ...           12 years ago
  • 0.9.0                                ...           12 years ago
  • 0.8.7                                ...           12 years ago
  • 0.8.6                                ...           12 years ago
Downloads
Total 152
Today 0
This Week 5
This Month 50
Last Day 1
Last Week 9
Last Month 77
Dependencies (7)
Dev Dependencies (5)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE