btcpayserver / btcpayserver-php-client

PHP implementation for the BTCPayServer cryptographically secure RESTful API
MIT License
29 stars 33 forks source link

get Bitcoin Address from Invoice #42

Open enriquepiatti opened 3 years ago

enriquepiatti commented 3 years ago

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

ndeet commented 3 years ago

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.

nosovk commented 3 years ago

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

Pezhvak commented 3 years ago

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

ndeet commented 3 years ago

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