Skip to content
This repository was archived by the owner on Apr 14, 2023. It is now read-only.

Only add state if available in Paypal Checkout Button View #237

Merged
merged 5 commits into from
Oct 27, 2020

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Sep 25, 2019

This refactors some logic out of the paypal checkout button view and only adds a state name to the address hash there if the state is configured and necessary.

Fixes #182
Supersedes #196 and #231

Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome. That's great. Thanks

@mamhoff mamhoff force-pushed the conditional-state-address branch from 0d97c8c to 49d44fb Compare September 28, 2019 10:48
@mamhoff mamhoff force-pushed the conditional-state-address branch from 49d44fb to a1f5f91 Compare October 9, 2019 12:58
@mamhoff
Copy link
Contributor Author

mamhoff commented Oct 9, 2019

Rebased with latest master

Copy link

@octave octave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes please merge!

@seand7565
Copy link
Contributor

Hello from 1 year in the future, @mamhoff ! I would love to merge this PR in. If you have the time, can you give it a quick rebase and make sure the specs pass? It's been a year, so just want to make sure. 🚀

Thanks!

For posterity, these issues should be closed when this is merged:
#182
#156
#93

This Object exists only so that a Spree Address can be rendered out in a
view in the right way, and so that that rendering is testable.
@mamhoff mamhoff force-pushed the conditional-state-address branch from a1f5f91 to b109ac6 Compare October 21, 2020 20:03
After cloning from master, bundler decided to install gems into the
.bundle directory. This is fine, but it shouldn't mess up my commits.

Similarly, I like to use .env files to manage credentials for projects,
and I don't want those to end up on an open source repo.
Without requiring the root `::Spree::Config` constant, we run into load
errors.
Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Martin!

@kennyadsl kennyadsl merged commit 299fed5 into solidusio:master Oct 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

state: '#{address.state.name}' undefined for Hong Kong address (or countries with no states)
5 participants