Closed achyuthajoy closed 3 years ago
@jorgeatorres Not sure why Travis is failing. The error doesn't come up when I'm running PHPCS locally with php@7.4. Travis is running php@7.0
The same error showed up locally when I switched to php@7.0. But there is no error with the code. Weird.
@jorgeatorres The error with php@7.0 is fixed now. All good.
It feels odd to me that once a merchant has both installed and activated PayPal Payments, we're still telling them about the upgrade to PayPal Payments in a very hard to miss notice (despite the fact that they've already read and acted on our messaging).
Couldn't we reduce the messaging somehow when PayPal Payments is already installed and active? If not, that's ok, but maybe we could hide the "Learn More" button or make the "Configure PayPal Payments now" a secondary button (like "Learn More" itself) and relabel as "Configure PayPal Payments" or something similar. The combination of the button being a primary button and the "Configure PayPal Payments now" label makes it look as if I (as a merchant) have missed something and still need to setup PayPal Payments, which is probably not the case.
@LevinMedia Can you look into this and suggest options?
@achyuthajoy I agree, once PayPal Payments is installed, I don't think we should show any additional messaging in the express checkout gateway plugin. Rather we should focus our efforts on making the onboarding to PayPal Payments as easy as possible through that extension.
Therefore, we can delete this message once PayPal Payments is installed.
Thanks @LevinMedia. I'll remove the message once the plugin is installed & configured.
@achyuthajoy Just to be clear - I think we can remove the message as soon as the new gateway is installed, before it's configured. We should rely on the new gateway to drive the configuration process :)
Sure @LevinMedia. I'll make the change. 😄
@jorgeatorres The requested changes are updated. Couple of new changes based on https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/pull/866#issuecomment-860837916
Configure PayPal Payments now
button removedI've also updated the PR testing instructions to remove Configure PayPal Payments now
.
Description
As part of various efforts to drive adoption of PayPal Payments, this PR aims to add a notice on the WordPress plugins page suggesting users to upgrade from PayPal Checkout to PayPal Payments.
Screenshot of the notice
Screencast - https://d.pr/v/Y24RUS
Steps to test:
paypal-payments-upgrade-notice
& activate the plugin if not active.Learn more
button opens up product documentation on WooCommerce.comUpgrade to PayPal Payments now
button installs the plugins and redirects to activation page.Upgrade to PayPal Payments now
button is clicked, the button text changes toInstalling...
with a spinning icon.Upgrade to PayPal Payments now
if plugin is not installed,Activate PayPal Payments now
if plugin is installed but not active.Upgrade to PayPal Payments now
instead ofActivate PayPal Payments now
.The SCSS code used can be found here - https://gist.github.com/achyuthajoy/06a2012495d2d2816678fe15e9860c05
Changelog entry
Adds notice on plugins page to upgrade to PayPal Payments.