-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Braintree in production modus not working #8154
Comments
Hi, @amansilla, looks like you did not configure Braintree payment method in Magento admin panel. Did you specify |
Hi @joni-jones thanks for your quick feedback. Yes, for sure I provided the ´Merchant ID´, ´Public Key´ and ´Private Key´. I'm guessing that JS is not be able to get the clientToken because I'm running it in a VM and Braintreee maybe check the domain name doing the request. I'll report the result of my test asap. |
You can also use |
Yes, I did it and getClientToken return always |
The |
I know but take a look here that the generate is called without params. https://github.com/magento/magento2/blob/2.1.2/app/code/Magento/Braintree/Model/Ui/ConfigProvider.php#L116 😄 |
So? In 2.1.2 version token generation does not use merchant account id (this param added in 2.1.3 version), but it anyway token will be generated without any params. |
In my case and it's important with production credentials it's not being generated. Why? I've no clue. |
Did you try to set breakpoint in BrainteeAdapter::generate? |
I debugged the BrainteeAdapter::generate and there during ClientToken::generate a exception will be thrown since a 401 HTTP status is returned back when doing the |
401 HTTP status says what request not authorized. Can you check your credentials in request to Braintree, also, you can check direct response from Braintree in |
ok sorry for disturbing here I got this working so you can close this. The problem was not magento related but braintree credential configuration, it seems the checkbox @joni-jones thx for your help 😉 |
You are welcome. I'm closing this issue as not a bug. |
@amansilla |
hi @sunilit42 @amansilla , I'm also having this issue in production mode and didn't see any Authorize API checkbox either. Did you come up with any fix for it then? |
@amansilla similar issue ref: #5910 |
Braintree not working in production mode, whenever I select "Credit Card (Braintree)" a JS error will occur.
Preconditions
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: