btcpayserver-php-client icon indicating copy to clipboard operation
btcpayserver-php-client copied to clipboard

get Bitcoin Address from Invoice

Open enriquepiatti opened this issue 5 years ago • 4 comments

Is possible to get the payment address (not from the buyer, our recepit btc address) from the Invoice?

enriquepiatti avatar Dec 18 '20 20:12 enriquepiatti

Seems only refund address is provided by the API. What use case do you have here? On BTCPay invoice the address as there but I think the api does not expose those currently.

ndeet avatar Jan 03 '21 20:01 ndeet

Greenfield API allows to get that info. https://docs.btcpayserver.org/API/Greenfield/v1/#operation/Invoices_ArchiveInvoice field destination will have address to pay.

nosovk avatar Jun 10 '21 17:06 nosovk

Greenfield API allows to get that info. https://docs.btcpayserver.org/API/Greenfield/v1/#operation/Invoices_ArchiveInvoice field destination will have address to pay.

The correct link is https://docs.btcpayserver.org/API/Greenfield/v1/#operation/Invoices_GetInvoicePaymentMethods

Pezhvak avatar Aug 25 '21 16:08 Pezhvak

Thanks for mentioning Greenfield API. This is the issue queue for the old BTCPay PHP client that was just a clone from the original Bitpay client but with renamed classes. So the Greenfield API is not related to this repo but as of recently has it's own PHP library which can be found here: https://github.com/btcpayserver/btcpayserver-greenfield-php

ndeet avatar Aug 25 '21 16:08 ndeet