Skip to content

Set states_required to false for Germany #3803

Description

@seand7565

German addresses do not typically use states. See: https://www.angloinfo.com/how-to/germany/housing/postal-system

This can cause validation issues on things like solidus_paypal_braintree because PayPal will not return a state when the users selects a German address in PayPal.

Valid German address in PayPal (no state):
Screen Shot 2020-10-21 at 2 52 03 PM

the below error happens on submit with solidus_paypal_braintree cart checkout on submit:
Screen Shot 2020-10-21 at 2 52 10 PM

I'm sure there are other countries like this, but Germany is the only one that I'm currently aware of.

states_required is set to true automatically if the country has any subregions in Carmen, but it appears that that shouldn't happen in some cases. See here - I think that's where it's being set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions