Open rana-ammir opened 7 years ago
Same error here. have you solved the problem ?
You need to create/authorize another separate client with the "pos" role. You need to maintain two separate clients, one with a "merchant" authorization and one with a "pos" authorization.
when I create_invoice this exception thrown. why and what's it solution? "Exception: Not authorized for facade: pos"
client = BitPay::SDK::Client.new(api_uri:'https://test.bitpay.com', pem: File.read('/home/pikessoft/projects/jinious/lib/bitpay.pem'), insecure: true ) @invoice = client.create_invoice(price: amount, currency: 'USD')
Error Message is: *** BitPay::BitPayError Exception: Not authorized for facade: pos