-
Notifications
You must be signed in to change notification settings - Fork 69
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
Filtering billing details from order based on checkout fields #8459
Conversation
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: 0 B Total Size: 1.2 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look decent so far, though I still need to test the functionality a little more thoroughly: just leaving a few minor musings that I had in the meantime, in case they might be worthy of mention.
Co-authored-by: Samir Merchant <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the little changes! Tested subscriptions with checkout fields removed and the renewals processed successfully. Also, tested a few regular checkout flows--regular checkouts, saved payment methods, pay for order--just to ensure no breaking changes might be lurking in here, but everything appears to be working as expected.
LGTM! 🚢
Co-authored-by: Samir Merchant <[email protected]>
Fixes #8352
Changes proposed in this Pull Request
In #8226 we started updating the billing address every time a saved payment method was used.
Later, in #8257, we stopped filtering the billing fields we send to prevent an issue where fields that were previously set would not update to empty.
This PR updates
get_billing_details_from_order
to return only the fields present in checkout to prevent sending required fields, such as Country, as empty.Testing instructions
npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge