Bitcoin Forum

Economy => Service Discussion => Topic started by: zepker vanz on September 13, 2018, 01:05:01 AM



Title: bitpay error
Post by: zepker vanz on September 13, 2018, 01:05:01 AM
hello,

i`m trying to pay a bitpay invoice but i can`t find the bitcoin address to pay and the qr doesn`t work. it`s urgent and i need to pay this today. please please help me!


Title: Re: bitpay error
Post by: TryNinja on September 13, 2018, 01:09:05 AM
If your wallet doesn't support the new payment protocol from Bitpay, you can get the address to pay the invoice manually by using one of those tools:

For Bitcoin payments: https://decoder.bip70.org/
For Bitcoin Cash payments: https://cashaddress.github.io/paymentbridge.html

Just get the payment URL and paste it into the text box.


Title: Re: bitpay error
Post by: zepker vanz on September 13, 2018, 01:20:28 AM
can i trust this site? how i see if the bitcoin address is real or fake?


Title: Re: bitpay error
Post by: TryNinja on September 13, 2018, 01:29:58 AM
can i trust this site? how i see if the bitcoin address is real or fake?
I would say you can.

But if you don't want to trust any third party website, you can get all the information by sending a GET request to the payment URL with "Accept" equal to "application/payment-request". If you are on Linux, you can just run this:

Doing the GET-request as suggested by TryNinja is probably the safest way to get the correct address.

Under linux this can be done with one command:
Code:
curl -i -H "Accept: application/payment-request" -H "Content-Type: application/payment-request" https://bitpay.com/i/YourInvoiceID

And with jq installed (a commandline json processor) an appealing formatted output appears when entering:
Code:
curl -i -H "Accept: application/payment-request" -H "Content-Type: application/payment-request" https://bitpay.com/i/YourInvoiceID | jq


Title: Re: bitpay error
Post by: zepker vanz on September 13, 2018, 01:37:24 AM
i got it.

thank you!