Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Does it works without bitpay ? #28

Open
ZauChoco opened this issue May 9, 2020 · 4 comments
Open

Does it works without bitpay ? #28

ZauChoco opened this issue May 9, 2020 · 4 comments

Comments

@ZauChoco
Copy link

ZauChoco commented May 9, 2020

I've read in the tutorial that we need a bitpay account to make use this library, is there any alternative ?
Here

I mean, i planned to use it because of third tier service absence, and now i need to create an account ?
Did I misunderstand ?

@NicolasDorier
Copy link
Member

@ZauChoco you don't need bitpay. This library is a in big part a copy/paste of bitpay's library with things renamed. Possible we left out one.

@ZauChoco
Copy link
Author

ZauChoco commented May 9, 2020

So what is the $pairingCode variable line 52 ? https://github.com/btcpayserver/btcpayserver-php-client/blob/master/examples/tutorial/002_pair.php
It is clearly said that i need to get a pairing code at https://test.bitpay.com/api-tokens and that it is available once and for a duration of 24h.

What I want to do is to generate public and private keys, to make transactions and to check balances. Is-it possible to do all of this only with this library ?

I'm pretty new with all these blockchain stuffs, maybe I misunderstand importants things.

@woutersamaey
Copy link
Collaborator

The samples are not updated for this library and are still the original BitPay API samples.
Someone should update the samples.
For implementation, you can just check my Magento 2 plugin which works 100% and uses this PHP API.

@NicolasDorier
Copy link
Member

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants