Deprecated your connect method but docs still reference it
See original GitHub issueGeneral information
- SDK/Library version: 3.0.0
- Environment: Production and Sandbox
- Language, language version, and OS: Node 14.11.0 on macOS 10.15.6
Issue description
On https://developers.braintreepayments.com/start/hello-server/node, the example given is:
var braintree = require("braintree");
var gateway = braintree.connect({
environment: braintree.Environment.Sandbox,
merchantId: "useYourMerchantId",
publicKey: "useYourPublicKey",
privateKey: "useYourPrivateKey"
});
But in 3.0.0, you deprecated the connect() method according to the CHANGELOG. The CHANGELOG also doesn’t state the method that replaced it.
Can you improve your documentation? Deprecating a method like this without any advance warning creates some risk.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to declare or mark a Java method as deprecated?
But still I would like to have it in my API. I just want to show "warning" to anyone using that method. How...
Read more >Deprecation of Basic authentication in Exchange Online
Simplicity isn't at all bad, but Basic authentication makes it easier ... who still use the old remote PowerShell connection method or the ......
Read more >Twilio Client JavaScript SDK - Twilio.Connection
A Twilio.Connection object represents a call to or from Twilio. You never instantiate it directly, but it's passed to event handlers and returned...
Read more >Accessing Google APIs with GoogleApiClient (deprecated)
For example, your app can call methods to read a file from Google Drive regardless of whether your GoogleApiClient instance is connected yet....
Read more >Deprecated | Android Developers
When a module is deprecated, the use of that module in requires , but not in exports or opens clauses causes a warning...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The docs are now updated: https://developers.braintreepayments.com/start/hello-server/node#install-and-configure
Here’s a migration guide for going from v2 to v3: https://developers.braintreepayments.com/reference/general/server-sdk-migration-guide/node
Here’s an example I was able to get working by looking at one of Braintree’s tests…