bitpay / node-bitpay-client

A Node.js module and command line client for interacting with BitPay's Cryptographically Secure API
102 stars 95 forks source link

fix resource tokens #53

Closed pnagurny closed 9 years ago

pnagurny commented 9 years ago

Resource tokens were broken. For example if you do:

invoice.post('notifications', function() {});

It would use the merchant token instead of the resource token. This code fixes the problem.