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

Fix shipping rate invalidation bug using Apple Pay in 1.2.2 #69

Merged
merged 1 commit into from
Dec 2, 2015

Conversation

runmad
Copy link
Contributor

@runmad runmad commented Dec 2, 2015

What is this?

Fix #68

This fixes an issue where the partialAddresses flag was set to false, which would invalidate the already set (through a updateCheckout:completion: call) shippingRate on Shopify during a call to completeCheckout:completion:.

I have added more context to the usage of the partialAddresses property and we now override the setter to throw an NSException if this is ever set to false. This value should always ever be set to true.

I have removed the code that would have (and may have) set this property to false and added a test assertion that an exception is thrown if the value is set.

@davidmuzi please review 👀

…d invalidat the already set (through a updateCheckout: call) shippingRate on a checkout during completeCheckout:
@davidmuzi
Copy link

Reviewed, and tested.

🚢

runmad added a commit that referenced this pull request Dec 2, 2015
…shipping-rates

Fix shipping rate invalidation bug using Apple Pay in 1.2.2
@runmad runmad merged commit 3e7059b into master Dec 2, 2015
@runmad runmad deleted the hotfix/runmad.68-partial-address-shipping-rates branch December 9, 2015 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: 422 During Checkout - Shipping Rate can't be blank
2 participants