-
Notifications
You must be signed in to change notification settings - Fork 685
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
Adds ability to edit CheckMo extension Billing Address #3239
Conversation
packages/extensions/venia-sample-payments-checkmo/src/components/edit.js
Show resolved
Hide resolved
packages/extensions/venia-sample-payments-checkmo/src/components/summary.css
Outdated
Show resolved
Hide resolved
packages/extensions/venia-sample-payments-checkmo/src/components/summary.js
Outdated
Show resolved
Hide resolved
packages/extensions/venia-sample-payments-checkmo/src/components/summary.js
Show resolved
Hide resolved
@@ -139,7 +136,11 @@ export const useBillingAddress = props => { | |||
* If billing address is same as shipping address, do | |||
* not auto fill the fields. | |||
*/ | |||
if (billingAddressData && !isBillingAddressSame) { | |||
if (isBillingAddressSame) { | |||
return { isBillingAddressSame, ...billingAddress }; |
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.
I really only changed this to match the comment above.
|
onPaymentSuccess, | ||
onPaymentError | ||
}); | ||
} = useCheckmo(props); |
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.
Nice catch
Looks good to send to QA would nice if you can cover new code with tests |
Coverage
✅ Addressed in 3b17d56. |
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.
Re-approving after fixing merge conflict.
Description
This PR adds the ability to modify your billing address when you pay with Check / Money Order.
Out of scope are:
both of which I have created internal tickets to address.
Related Issue
Closes PWA-1701.
Acceptance
Verification Stakeholders
Specification
Test Plan
Verification Steps
Test scenario(s) for direct fix/feature
Before performing the following tests, be sure to enable the Check / Money Order extension on your local development storefront by adding the following lines to your
venia-concept
package.json
dependencies
section:Billing Address Same
/checkout
pageBilling Address Same - Edit
Switch to Alternate Billing Address
Billing Address Different - Edit
Switch back to Same Billing Address
Place Order
Test scenario(s) for any existing impacted features/areas
Test scenario(s) for any Magento Backend Supported Configurations
The Magento Backend likely needs to enable Check / Money Order payments for the actual placement of orders to succeed.
Is Browser/Device testing needed?
No
Any ad-hoc/edge case scenarios that need to be considered?
No
Screenshots / Screen Captures (if appropriate)
Breaking Changes (if any)
Checklist