Post
Topic
Board Development & Technical Discussion
Re: How to create a wallet, check transactions and make payments with PHP ?
by
ZauChoco
on 10/05/2020, 14:01:55 UTC
You could take a look at BTCPayServer. It's a self-hosted open source payment processor for Bitcoin, which charges no fees and also has a PHP library.

https://github.com/btcpayserver/btcpayserver
https://github.com/btcpayserver/btcpayserver-php-client

Finally i'll use your solution. At the moment I try to use it already hosted, https://btcpayjungle.com/

I tried many things to make it works, but without any result.

Is it possible with a simple http request to add wallets and make/check transactions with them ?

The documentation says to simply copy the BitPay doc for the api part, but to be honest it's confusing.

There are a lot of "authentification" keys, either tokens generated on the server itself, or by the library (https://github.com/btcpayserver/btcpayserver-php-client), there is the SIN too, and two places to have API keys. What are these things use for ? And which one am i suppose to use ?

All I want is only to get a unique api key somewhere to make http request in order to add wallets (Private & Public key), create and check transactions. In clear, override all the invoice stuffs.

In clear, something like this:
https[Suspicious link removed]mple.com/api/newTransaction?apiKey=[API key]&publicKey=14h3sYm559vt7YiKsmNviyXNCqULaSKKCf&privateKey=bc1q9paknt7d05tmzh2frcu8qxgk0ev0mtnpgcz4a3&to=1649LVmQnPfLMSKisM325Bvcx3nYbo5Lmw&amount=0.01&fees=0.001


Is it possible ? And how ?

Thank you