-
-
Notifications
You must be signed in to change notification settings - Fork 76
Silent failure after payment #153
Comments
Yes, you have to set I have to check what we do with error messages but, in this case, this is not an error the user can fix himself anyway. |
OK, thanks for that bit of info. Maybe it's the wrong place to ask here, but do you know why 150 of the countries in the DB have that field set to true as a default? I'm aware of only a few countries requiring the State as part of an address. (example https://webmasters.stackexchange.com/a/3228) |
After changing the flag, the error 422 persists but turns into
Probably because it tries to validate Paypal's "Empty" State and can't find it. This is problematic because the user has no chance to know what is going on, if they have a typo in their address... even a javascript alert with the error message would help. |
FWIW I managed to work around the validation problems by doing the following steps. Maybe its useful to someone if they find this bug. It was stumbling not only over the state, but also over a missing phone number.
Adding this switch in config: And adding this override module:
|
It's true that German should not be set to |
Thanks Sean! |
Does anyone know how to fix this for UK sites? Our shipping page calculates their rate depending on their state so it's quite important |
I'm locally testing solidus_paypal_braintree and configured a payment method to use my Braintree sandbox account which in turn is linked to the Paypal sandbox.
I then add a product to my cart and click the "Paypal Check out" button. I log in with my sandbox account, which is based in Germany, and pay for the order. Then, the paypal popup window closes and nothing happens on the cart page.
When running web inspector, I can see that the request to /solidus_paypal_braintree/transactions failed with error 422:
{errors: {Address: ["is invalid"], address: ["spree_state can't be blank"]}, status: 422}
But no error message is displayed to the (fake) customer.
The parameters submitted where:
In Germany, states are not relevant/normally not included in addresses. This might trigger the spree_state problem. But this bug report is more about the silent failure. Is there a workaround to at least show the error to the customer?
The text was updated successfully, but these errors were encountered: