-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Show APMs on the new Payments menu #34581
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
Show APMs on the new Payments menu #34581
Conversation
Test Results SummaryCommit SHA: 62467e9
To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
- Add valid links to each APM - Add valid link to the marketplace
- Add valid links to each APM - Add valid link to the marketplace
- Style a notice about APM is enabled - Add noreferrer and target=_blank to external links
…ional-pms-on-payments-welcome
|
A couple of questions need to be resolved before the review
|
dmallory42
left a comment
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 working on this, @oaratovskyi! It's looking really good. I left a few minor comments, and also messaged you on Slack to ask some questions about testing instructions. When I can test it and you've had a chance to look at the comments I can approve! 🙂
…ional-pms-on-payments-welcome
ismaeldcom
left a comment
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.
| return createInterpolateElement( | ||
| sprintf( | ||
| __( | ||
| 'Installing <strong>WooCommerce Payments</strong> will automatically activate <strong>%s</strong> %s in your store.', |
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.
Can you add a "translators" comment like this? Thanks!
woocommerce/plugins/woocommerce-admin/client/homescreen/activity-panel/stock/card.js
Line 95 in a0c13ab
| /* translators: %s = name of the product having stock updated */ |
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.
Good catch, thank you! Will add that
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.
Fixed in 579b1d6!
Because I made them after installing the plugins 😅 cc @ismaeldcom |
|
@ismaeldcom I've also addressed all the nitpicks, thanks for catching those, now the gaps and links look consistent 🔥 |
| <List items={ apmsList } /> | ||
| </CardBody> | ||
| <CardFooter> | ||
| <ExternalLink href="https://woocommerce.com/product-category/woocommerce-extensions/payment-gateways/wallets/?categoryIds=28682&collections=product&page=1"> |
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.
FYI: This link is provided by Keala in DM when reviewed the functionality
dmallory42
left a comment
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.
Tested both locally and on a JN site, it's working well - the extensions were all installed and the tracking events were populated correctly - thanks for working on this!
I'll pre-approve it from a functionality POV, I know there were a few minor comments on styling, so once the designs and copy are all approved and the WC team have signed off we can
!
|
Confirmed with Atlas that I am good to go with merging it (my changes don't break the tests) |
chihsuan
left a comment
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.
Excellent work! @oaratovskyi Tested well and LGTM. 🚀
|
Hi @adrianduffell, thanks for merging this pull request. Please take a look at these follow-up tasks you may need to perform:
|
* Initial commit * Implement APMs toggle button - Add valid links to each APM - Add valid link to the marketplace * Implement APMs toggle button - Add valid links to each APM - Add valid link to the marketplace * Refactor the code to be more explicit * Delete the apm on toggle off if it's local state * Implement FAQ simple block - Style a notice about APM is enabled - Add noreferrer and target=_blank to external links * Add todo comments * FAQ simple styling fix (improve padding) * Fixes after inner review * Add changelog item * Address PR review comments * Remove Affirm as it's not in the store * Style fixes, proper internationalization and put valid link * Styling fixes, translators comment, rename ApmsProps component to ApmListProps * Two more styling fixes * Styling fix * Styling fix * Remove text-decoration: none to match the design

All Submissions:
Changes proposed in this Pull Request:
The changes in this pull request add the additional payment methods, such as PayPal, AmazonPay, Klarna, and Affirm to the WC Payments welcome page (experiment). If toggled, it allows installation of those extensions alongside with WCPay.
Implemented the following items according to the design (7QOkvxzz1ylS3QBS4zqW8R-fi-10292%3A40323):
wcpay_extension_installedevent onInstallbutton click.Closes Automattic/woocommerce-payments#4529.
Important: installation of the Affirm plugin is not possible yet, because it is absent in wp.org. There is an ongoing discussion here (pc2DNy-166-p2). For now, it's out of scope (paJDYF-4Ov-p2#comment-13959).
How to test the changes in this Pull Request:
can't resolve docker.internal)/wp-admin/admin.php?page=wc-admin&path=%2Fwc-pay-welcome-pageMake sure it looks like at the screenshot below and matches the design
wcadmin_wcpay_extension_installedevent was recorded (after 5 mins when tracking event will show up)Other information:
pnpm changelog add --filter=<project>?FOR PR REVIEWER ONLY: