Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 8 - Braintree Token Generation #94

Open
Yvson opened this issue Jul 23, 2021 · 0 comments
Open

Chapter 8 - Braintree Token Generation #94

Yvson opened this issue Jul 23, 2021 · 0 comments

Comments

@Yvson
Copy link

Yvson commented Jul 23, 2021

Maybe it is necessary to pass the merchant_account_id as an argument to the generate function on line 41 of 'myshop/payment/views.py'.

Replace

client_token = gateway.client_token.generate()

by

client_token = gateway.client_token.generate(params={'merchant_account_id': settings.BRAINTREE_MERCHANT_ID})

Braintree Doc: https://developer.paypal.com/braintree/docs/reference/request/client-token/generate/python

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

No branches or pull requests

1 participant