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

Checkout with Braintree does not work if shipping is not required #6125

Closed
hummerh2 opened this issue Aug 12, 2016 · 4 comments
Closed

Checkout with Braintree does not work if shipping is not required #6125

hummerh2 opened this issue Aug 12, 2016 · 4 comments

Comments

@hummerh2
Copy link

Ubuntu, PHP 7.0.9, Magento 2.1

When checking out with a product that does not have shipping with the Braintree Payment method returns "the server responded with a status of 400".

Steps to recreate.

  • Fresh install of Magento 2 enable Braintree payment module and input sandbox api information.
  • Disable all shipping or create a downloadable product that does not have any shipping
  • Add only the downloadable product to the cart an begin to check out (make sure no shipping is applied to the product). After inputting credit card details click submit. Firebug shows "the server responded with a status of 400"

My work around to get the checkout working is to set Flat Rate shipping to "0.00" and set all my software products to require shipping. The downside is any products created as downloadable must be changed to require shipping.

screen shot 2016-08-11 at 9 09 20 pm

screen shot 2016-08-11 at 10 11 02 pm

@YevSent
Copy link
Contributor

YevSent commented Aug 12, 2016

Hi, @hummerh2, thanks for reporting.

On your second screenshot, I see Country and Phone fields above Braintree credit card form, did you press Update button after entering billing address details?
This fields should not look like input, but should look like this:
screenshot from 2016-08-12 10-34-14

Also, could you reproduce it on the latest develop?

@hummerh2
Copy link
Author

Hi @joni-jones ,

I have tried both with clicking update first and without clicking update. Get the same 400 error. I will try on the latest develop this evening.

Thanks!

Mac OS X 10.11.6, Chrome Version 52.0.2743.116 (64-bit), Safari Version 9.1.2 (11601.7.7), Firefox Ver 48

@YevSent
Copy link
Contributor

YevSent commented Aug 12, 2016

Without clicking Update won't work, because only after that action billing address will be added to quote and payment.
You can use xdebug to find main reason of this error. Try to set breakpoint in PaymentInformationManagement or GuestPaymentInformationManagement for guest customers.

@alena-marchenko
Copy link

Hi @hummerh2

Closing this issue due to no response, please reopen when you have an update.

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

No branches or pull requests

3 participants