import { __ } from '@wordpress/i18n'; import { Button } from '@wordpress/components'; import PaymentMethodIcons from '../../../ReusableComponents/PaymentMethodIcons'; import { Separator } from '../../../ReusableComponents/Elements'; import Accordion from '../../../ReusableComponents/AccordionSection'; import { CommonHooks, OnboardingHooks } from '../../../../data'; import BusyStateWrapper from '../../../ReusableComponents/BusyStateWrapper'; import OnboardingHeader from '../Components/OnboardingHeader'; import WelcomeDocs from '../Components/WelcomeDocs'; import AdvancedOptionsForm from '../Components/AdvancedOptionsForm'; import { usePaymentConfig } from '../hooks/usePaymentConfig'; const StepWelcome = ( { setStep, currentStep } ) => { const { storeCountry, isBranded } = CommonHooks.useWooSettings(); const { canUseCardPayments, canUseFastlane } = OnboardingHooks.useFlags(); const { icons } = usePaymentConfig( storeCountry, canUseCardPayments, 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 (
{ __( 'Click the button below to be guided through connecting your existing PayPal account or creating a new one. You will be able to choose the payment options that are right for your store.', 'woocommerce-paypal-payments' ) }
{ __( 'Instant', 'woocommerce-paypal-payments' ) }
{ __( 'Authorize only or Capture', 'woocommerce-paypal-payments' ) }
{ __( 'Supported', 'woocommerce-paypal-payments' ) }