Search code examples
ruby-on-railsbitcoin

Bitpay Ruby client funtion error


Whenever I create an invoice using bitpay ruby client library fucntion

client.create_invoice(price: amount, currency: 'USD')

I get error like this

* BitPay::BitPayError Exception: Not authorized for facade: pos

Solution

  • You need to select facade "pos" when pairing client.