Open jvn145 opened 3 years ago
👋 @jvn145 thanks for reaching out. Creating a Braintree gateway using a client ID and client secret is only intended for oAuth management, not transaction management like transaction.sale
calls. If you're trying to create a transaction using a shared vault, you'll need to create an access token first and create your gateway instance with that access token.
If you're not using an oAuth scenario to manage your vault and transact with a shared vault, you should be creating your gateway using API credentials. For any assistance with oAuth or setting up your gateway with API credentials, please contact Support.
All this said, this error message isn't helpful in understanding the limitations of making a gateway via oAuth, and we should definitely update the SDK to surface a better error message. I'll leave this issue open to track improving our error messaging around this scenario.
for internal tracking, ticket 836
General information
Issue description
When I try and
gateway.transaction.find
a transaction using a gateway that was initialised with a client_id and secret, I receive aTypeError
"can only concatenate str (not "NoneType") to str".Had a look, this happens because the BraintreeGateway.merchant_id is not set if you initialise it using a client_id and secret.
Steps to reproduce:
Traceback: