From 4e046a9332a2b8b4948a0ba2f6be6390378742a5 Mon Sep 17 00:00:00 2001 From: carmenmaymo Date: Mon, 17 Mar 2025 14:43:39 +0100 Subject: [PATCH] Remove apple/google from description if not available --- .../Screens/Onboarding/Steps/StepWelcome.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/modules/ppcp-settings/resources/js/Components/Screens/Onboarding/Steps/StepWelcome.js b/modules/ppcp-settings/resources/js/Components/Screens/Onboarding/Steps/StepWelcome.js index b2ff25ecf..c5da38383 100644 --- a/modules/ppcp-settings/resources/js/Components/Screens/Onboarding/Steps/StepWelcome.js +++ b/modules/ppcp-settings/resources/js/Components/Screens/Onboarding/Steps/StepWelcome.js @@ -21,6 +21,16 @@ const StepWelcome = ( { setStep, currentStep } ) => { canUseFastlane ); + const onboardingHeaderDescription = canUseCardPayments + ? __( + 'Your all-in-one integration for PayPal checkout solutions that enable buyers to pay via PayPal, Pay Later, all major credit/debit cards, Apple Pay, Google Pay, and more.', + 'woocommerce-paypal-payments' + ) + : __( + 'Your all-in-one integration for PayPal checkout solutions that enable buyers to pay via PayPal, Pay Later, all major credit/debit cards, and more.', + 'woocommerce-paypal-payments' + ); + return (
{ 'Welcome to PayPal Payments', 'woocommerce-paypal-payments' ) } - description={ __( - 'Your all-in-one integration for PayPal checkout solutions that enable buyers to pay via PayPal, Pay Later, all major credit/debit cards, Apple Pay, Google Pay, and more.', - 'woocommerce-paypal-payments' - ) } + description={ onboardingHeaderDescription } />