connect-nodejs-sdk icon indicating copy to clipboard operation
connect-nodejs-sdk copied to clipboard

Updated "How to configure sandbox environment"

Open frankely opened this issue 5 years ago • 1 comments

I renamed the client variable to defaultClient in the "How to configure sandbox environment" code sample to keep consistency with the name given to the SquareConnect.ApiClient.instance in the first "Getting Started" code sample. Because in my case, I copied and pasted the first example and then just copied the line that sets the basePath, and because the naming is different, my code was failing. Hopefully, this fix in the documentation will allow distracted copy-pasters to move along seamlessly.

frankely avatar Oct 24 '19 05:10 frankely

The fix is merged here https://github.com/square/connect-nodejs-sdk/pull/80. Thanks for using our SDK and reporting!

ssung88 avatar Jan 02 '20 18:01 ssung88