bitpay / php-bitpay-light-client

Light version of the PHP library for the new cryptographically secure BitPay API
MIT License
18 stars 23 forks source link

Missing something in the doc/guide? #24

Closed MkLHX closed 2 years ago

MkLHX commented 2 years ago

Hi there, I trying to troubleshoot something caused by non clear documentation (it's just my opinion)

What is the api key facade/config file generator?

Here on the php light lib webpage: https://bitpay.com/integrations/php-lite On the "Initializing your BitPay light client" section we can read :Once you have the environment file (JSON or YML previously generated) you can initialize the client on two different ways:

On the repo guide I can read the same thing about config file env https://github.com/bitpay/php-bitpay-light-client/blob/master/GUIDE.md#initializing-your-bitpay-light-client

When I click on the [Request an API token]() image I 'm redirected on https://github.com/bitpay/php-bitpay-light-client/blob/master/GUIDE.md#getting-your-client-token

https://github.com/bitpay/php-bitpay-light-client/blob/master/GUIDE.md#getting-your-client-token

On my dashboard nothing says something about "the config file generation": Capture d’écran 2022-04-06 152116

For the first time and after wasting many hours to find the good way to use it I found https://support.bitpay.com/hc/en-us/articles/115003001063-How-do-I-configure-and-use-the-BitPay-PHP-Library- And in this article I can click on a link "The BitPay Config Generator and be redirected to : https://github.com/bitpay/php-bitpay-client-v2/blob/master/examples/ConfigGenerator.php

Sorry guys but it isn't easy to understand how to get the token to request bitpay api merchant facade ...

anbugal commented 2 years ago

Hi @MkLHX,

We have just corrected the documentation.

If you are looking to use the Merchant Facade you should use the Complete SDK But if you are just looking to generate payment requests you can just use this Lite version.

Hope this helps to clarify.

MkLHX commented 2 years ago

Thx