2024-11-12 19:23:30 +04:00
import BadgeBox , { BADGE _BOX _TITLE _BIG } from "../BadgeBox" ;
import { _ _ , sprintf } from '@wordpress/i18n' ;
import Separator from '../Separator' ;
2024-11-25 19:00:21 +04:00
import generatePriceText from '../../../utils/badgeBoxUtils' ;
2024-11-12 19:23:30 +04:00
2024-11-25 19:00:21 +04:00
const AcdcFlow = ( { isFastlane , isPayLater , storeCountry , storeCurrency , countryPriceInfo } ) => {
2024-11-12 19:23:30 +04:00
if ( isFastlane && isPayLater && storeCountry === 'us' ) {
return (
< div className = "ppcp-r-welcome-docs__wrapper" >
< div className = "ppcp-r-welcome-docs__col" >
< BadgeBox
title = { _ _ ( 'PayPal Checkout' , 'woocommerce-paypal-payments' ) }
titleType = { BADGE _BOX _TITLE _BIG }
textBadge = { _ _ ( 'from 3.49% + $0.49 USD<sup>1</sup>' , 'woocommerce-paypal-payments' ) }
description = { _ _ (
'Our all-in-one checkout solution lets you offer PayPal, Venmo, Pay Later options, and more to help maximise conversion' ,
'woocommerce-paypal-payments'
) }
/ >
< BadgeBox
title = { _ _ ( 'Included in PayPal Checkout' , 'woocommerce-paypal-payments' ) }
titleType = { BADGE _BOX _TITLE _BIG } / >
< BadgeBox
title = { _ _ ( 'Pay with PayPal' , 'woocommerce-paypal-payments' ) }
imageBadge = { [ 'icon-button-paypal.svg' ] }
description = { sprintf (
2024-11-25 19:00:21 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-12 19:23:30 +04:00
_ _ (
'Our brand recognition helps give customers the confidence to buy. <a target="_blank" href="%s">Learn more</a>' ,
'woocommerce-paypal-payments'
) ,
2024-11-25 19:00:21 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-12 19:23:30 +04:00
) }
/ >
< Separator className = "ppcp-r-page-welcome-mode-separator" / >
< BadgeBox
title = { _ _ ( 'Pay Later' , 'woocommerce-paypal-payments' ) }
imageBadge = { [ 'icon-payment-method-paypal-small.svg' ] }
description = { sprintf (
2024-11-25 19:00:21 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-12 19:23:30 +04:00
_ _ (
'Offer installment payment options and get paid upfront - at no extra cost to you. <a target="_blank" href="%s">Learn more</a>' ,
'woocommerce-paypal-payments'
) ,
2024-11-25 19:00:21 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-12 19:23:30 +04:00
) }
/ >
< Separator className = "ppcp-r-page-welcome-mode-separator" / >
< BadgeBox
title = { _ _ ( 'Venmo' , 'woocommerce-paypal-payments' ) }
imageBadge = { [ 'icon-button-venmo.svg' ] }
description = { sprintf (
2024-11-25 19:00:21 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-12 19:23:30 +04:00
_ _ (
'Automatically offer Venmo checkout to millions of active users. <a target="_blank" href="%s">Learn more</a>' ,
'woocommerce-paypal-payments'
) ,
2024-11-25 19:00:21 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-12 19:23:30 +04:00
) }
/ >
< Separator className = "ppcp-r-page-welcome-mode-separator" / >
< BadgeBox
title = { _ _ ( 'Crypto' , 'woocommerce-paypal-payments' ) }
imageBadge = { [ 'icon-payment-method-crypto.svg' ] }
description = { sprintf (
2024-11-25 19:00:21 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-12 19:23:30 +04:00
_ _ (
'Let customers checkout with Crypto while you get paid in cash. <a target="_blank" href="%s">Learn more</a>' ,
'woocommerce-paypal-payments'
) ,
2024-11-25 19:00:21 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-12 19:23:30 +04:00
) }
/ >
< / d i v >
< div className = "ppcp-r-welcome-docs__col" >
< BadgeBox
title = { _ _ ( 'Optional payment methods' , 'woocommerce-paypal-payments' ) }
titleType = { BADGE _BOX _TITLE _BIG }
description = { _ _ ( 'with additional application' , 'woocommerce-paypal-payments' ) }
/ >
< BadgeBox
title = { _ _ ( 'Custom Card Fields' , 'woocommerce-paypal-payments' ) }
imageBadge = { [ 'icon-button-visa.svg' , 'icon-button-mastercard.svg' , 'icon-button-amex.svg' , 'icon-button-discover.svg' ] }
textBadge = { _ _ ( 'from 2.59% + $0.49 USD<sup>1</sup>' , 'woocommerce-paypal-payments' ) }
description = { sprintf (
2024-11-25 19:00:21 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-12 19:23:30 +04:00
_ _ (
'Style the credit card fields to match your own style. Includes advanced processing with risk management, 3D Secure, fraud protection options, and chargeback protection. <a target="_blank" href="%s">Learn more</a>' ,
'woocommerce-paypal-payments'
) ,
2024-11-25 19:00:21 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-12 19:23:30 +04:00
) }
/ >
< Separator className = "ppcp-r-page-welcome-mode-separator" / >
< BadgeBox
title = { _ _ ( 'Digital Wallets' , 'woocommerce-paypal-payments' ) }
imageBadge = { [ 'icon-button-apple-pay.svg' , 'icon-button-google-pay.svg' ] }
textBadge = { _ _ ( 'from 2.59% + $0.49 USD<sup>1</sup>' , 'woocommerce-paypal-payments' ) }
description = { sprintf (
2024-11-25 19:00:21 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-12 19:23:30 +04:00
_ _ (
'Accept Apple Pay on eligible devices and Google Pay through mobile and web. <a target="_blank" href="%s">Learn more</a>' ,
'woocommerce-paypal-payments'
) ,
2024-11-25 19:00:21 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-12 19:23:30 +04:00
) }
/ >
< Separator className = "ppcp-r-page-welcome-mode-separator" / >
< BadgeBox
title = { _ _ ( 'Alternative Payment Methods' , 'woocommerce-paypal-payments' ) }
imageBadge = { [ 'icon-button-sepa.svg' , 'icon-button-ideal.svg' , 'icon-button-blik.svg' , 'icon-button-bancontact.svg' ] }
2024-11-25 19:00:21 +04:00
textBadge = { _ _ ( 'from 2.59% + $0.49 USD<sup>1</sup>' , 'woocommerce-paypal-payments' ) }
2024-11-12 19:23:30 +04:00
description = { sprintf (
2024-11-25 19:00:21 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-12 19:23:30 +04:00
_ _ (
'Seamless payments for customers across the globe using their preferred payment methods. <a target="_blank" href="%s">Learn more</a>' ,
'woocommerce-paypal-payments'
) ,
2024-11-25 19:00:21 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-12 19:23:30 +04:00
) }
/ >
< Separator className = "ppcp-r-page-welcome-mode-separator" / >
< BadgeBox
title = { _ _ ( '' , 'woocommerce-paypal-payments' ) }
imageBadge = { [ 'icon-payment-method-fastlane-small.svg' ] }
textBadge = { _ _ ( 'from 2.59% + $0.49 USD<sup>1</sup>' , 'woocommerce-paypal-payments' ) }
description = { sprintf (
2024-11-25 19:00:21 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-12 19:23:30 +04:00
_ _ (
'Speed up guest checkout with Fatslane. Link a customer\'s email address to their payment details. <a target="_blank" href="%s">Learn more</a>' ,
'woocommerce-paypal-payments'
) ,
2024-11-25 19:00:21 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-12 19:23:30 +04:00
) }
/ >
< / d i v >
< / d i v >
) ;
}
if ( isPayLater && storeCountry === 'uk' ) {
return (
< div className = "ppcp-r-welcome-docs__wrapper" >
< div className = "ppcp-r-welcome-docs__col" >
< BadgeBox
title = { _ _ ( 'PayPal Checkout' , 'woocommerce-paypal-payments' ) }
titleType = { BADGE _BOX _TITLE _BIG }
textBadge = { _ _ ( 'from 2.90% + £0.30 GBP<sup>1</sup>' , 'woocommerce-paypal-payments' ) }
description = { _ _ (
'Our all-in-one checkout solution lets you offer PayPal, Venmo, Pay Later options, and more to help maximise conversion' ,
'woocommerce-paypal-payments'
) }
/ >
< BadgeBox
title = { _ _ ( 'Included in PayPal Checkout' , 'woocommerce-paypal-payments' ) }
titleType = { BADGE _BOX _TITLE _BIG } / >
< BadgeBox
title = { _ _ ( 'Pay with PayPal' , 'woocommerce-paypal-payments' ) }
imageBadge = { [ 'icon-button-paypal.svg' ] }
description = { sprintf (
// translators: %s: Link to PayPal REST application guide
_ _ (
'Our brand recognition helps give customers the confidence to buy. <a target="_blank" href="%s">Learn more</a>' ,
'woocommerce-paypal-payments'
) ,
'https://woocommerce.com/document/woocommerce-paypal-payments/#manual-credential-input '
) }
/ >
< Separator className = "ppcp-r-page-welcome-mode-separator" / >
< BadgeBox
title = { _ _ ( 'Pay in 3' , 'woocommerce-paypal-payments' ) }
imageBadge = { [ 'icon-payment-method-paypal-small.svg' ] }
description = { sprintf (
// translators: %s: Link to PayPal REST application guide
_ _ (
'Offer installment payment options and get paid upfront - at no extra cost to you. <a target="_blank" href="%s">Learn more</a>' ,
'woocommerce-paypal-payments'
) ,
'https://woocommerce.com/document/woocommerce-paypal-payments/#manual-credential-input '
) }
/ >
< / d i v >
< div className = "ppcp-r-welcome-docs__col" >
< BadgeBox
title = { _ _ ( 'Optional payment methods' , 'woocommerce-paypal-payments' ) }
titleType = { BADGE _BOX _TITLE _BIG }
description = { _ _ ( 'with additional application' , 'woocommerce-paypal-payments' ) }
/ >
< BadgeBox
title = { _ _ ( 'Custom Card Fields' , 'woocommerce-paypal-payments' ) }
imageBadge = { [ 'icon-button-visa.svg' , 'icon-button-mastercard.svg' , 'icon-button-amex.svg' , 'icon-button-discover.svg' ] }
textBadge = { _ _ ( 'from 1.20% + £0.30 GBP<sup>1</sup>' , 'woocommerce-paypal-payments' ) }
description = { sprintf (
2024-11-25 19:00:21 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-12 19:23:30 +04:00
_ _ (
'Style the credit card fields to match your own style. Includes advanced processing with risk management, 3D Secure, fraud protection options, and chargeback protection. <a target="_blank" href="%s">Learn more</a>' ,
'woocommerce-paypal-payments'
) ,
2024-11-25 19:00:21 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-12 19:23:30 +04:00
) }
/ >
< Separator className = "ppcp-r-page-welcome-mode-separator" / >
< BadgeBox
title = { _ _ ( 'Digital Wallets' , 'woocommerce-paypal-payments' ) }
imageBadge = { [ 'icon-button-apple-pay.svg' , 'icon-button-google-pay.svg' ] }
textBadge = { _ _ ( 'from 1.20% + £0.30 GBP<sup>1</sup>' , 'woocommerce-paypal-payments' ) }
description = { sprintf (
2024-11-25 19:00:21 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-12 19:23:30 +04:00
_ _ (
'Accept Apple Pay on eligible devices and Google Pay through mobile and web. <a target="_blank" href="%s">Learn more</a>' ,
'woocommerce-paypal-payments'
) ,
2024-11-25 19:00:21 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-12 19:23:30 +04:00
) }
/ >
< Separator className = "ppcp-r-page-welcome-mode-separator" / >
< BadgeBox
title = { _ _ ( 'Alternative Payment Methods' , 'woocommerce-paypal-payments' ) }
imageBadge = { [ 'icon-button-sepa.svg' , 'icon-button-ideal.svg' , 'icon-button-blik.svg' , 'icon-button-bancontact.svg' ] }
textBadge = { _ _ ( 'from 1.20% + £0.30 GBP<sup>1</sup>' , 'woocommerce-paypal-payments' ) }
description = { sprintf (
2024-11-25 19:00:21 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-12 19:23:30 +04:00
_ _ (
'Seamless payments for customers across the globe using their preferred payment methods. <a target="_blank" href="%s">Learn more</a>' ,
'woocommerce-paypal-payments'
) ,
2024-11-25 19:00:21 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-12 19:23:30 +04:00
) }
/ >
< / d i v >
< / d i v >
) ;
}
return (
< div className = "ppcp-r-welcome-docs__wrapper" >
< div className = "ppcp-r-welcome-docs__col" >
< BadgeBox
title = { _ _ ( 'PayPal Checkout' , 'woocommerce-paypal-payments' ) }
titleType = { BADGE _BOX _TITLE _BIG }
2024-11-25 19:00:21 +04:00
textBadge = { generatePriceText ( 'checkout' , countryPriceInfo [ storeCountry ] , storeCurrency ) }
2024-11-12 19:23:30 +04:00
description = { _ _ (
'Our all-in-one checkout solution lets you offer PayPal, Venmo, Pay Later options, and more to help maximise conversion' ,
'woocommerce-paypal-payments'
) }
/ >
< BadgeBox
title = { _ _ ( 'Included in PayPal Checkout' , 'woocommerce-paypal-payments' ) }
titleType = { BADGE _BOX _TITLE _BIG } / >
< BadgeBox
title = { _ _ ( 'Pay with PayPal' , 'woocommerce-paypal-payments' ) }
imageBadge = { [ 'icon-button-paypal.svg' ] }
description = { sprintf (
// translators: %s: Link to PayPal REST application guide
_ _ (
'Our brand recognition helps give customers the confidence to buy. <a target="_blank" href="%s">Learn more</a>' ,
'woocommerce-paypal-payments'
) ,
'https://woocommerce.com/document/woocommerce-paypal-payments/#manual-credential-input '
) }
/ >
< Separator className = "ppcp-r-page-welcome-mode-separator" / >
< BadgeBox
title = { _ _ ( 'Pay Later' , 'woocommerce-paypal-payments' ) }
imageBadge = { [ 'icon-payment-method-paypal-small.svg' ] }
description = { sprintf (
// translators: %s: Link to PayPal REST application guide
_ _ (
'Offer installment payment options and get paid upfront - at no extra cost to you. <a target="_blank" href="%s">Learn more</a>' ,
'woocommerce-paypal-payments'
) ,
'https://woocommerce.com/document/woocommerce-paypal-payments/#manual-credential-input '
) }
/ >
< / d i v >
< div className = "ppcp-r-welcome-docs__col" >
< BadgeBox
title = { _ _ ( 'Optional payment methods' , 'woocommerce-paypal-payments' ) }
titleType = { BADGE _BOX _TITLE _BIG }
description = { _ _ ( 'with additional application' , 'woocommerce-paypal-payments' ) }
/ >
< BadgeBox
title = { _ _ ( 'Custom Card Fields' , 'woocommerce-paypal-payments' ) }
imageBadge = { [ 'icon-button-visa.svg' , 'icon-button-mastercard.svg' , 'icon-button-amex.svg' , 'icon-button-discover.svg' ] }
2024-11-25 19:00:21 +04:00
textBadge = { generatePriceText ( 'ccf' , countryPriceInfo [ storeCountry ] , storeCurrency ) }
2024-11-12 19:23:30 +04:00
description = { sprintf (
2024-11-25 19:00:21 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-12 19:23:30 +04:00
_ _ (
'Style the credit card fields to match your own style. Includes advanced processing with risk management, 3D Secure, fraud protection options, and chargeback protection. <a target="_blank" href="%s">Learn more</a>' ,
'woocommerce-paypal-payments'
) ,
2024-11-25 19:00:21 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-12 19:23:30 +04:00
) }
/ >
< Separator className = "ppcp-r-page-welcome-mode-separator" / >
< BadgeBox
title = { _ _ ( 'Digital Wallets' , 'woocommerce-paypal-payments' ) }
imageBadge = { [ 'icon-button-apple-pay.svg' , 'icon-button-google-pay.svg' ] }
2024-11-25 19:00:21 +04:00
textBadge = { generatePriceText ( 'dw' , countryPriceInfo [ storeCountry ] , storeCurrency ) }
2024-11-12 19:23:30 +04:00
description = { sprintf (
2024-11-25 19:00:21 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-12 19:23:30 +04:00
_ _ (
'Accept Apple Pay on eligible devices and Google Pay through mobile and web. <a target="_blank" href="%s">Learn more</a>' ,
'woocommerce-paypal-payments'
) ,
2024-11-25 19:00:21 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-12 19:23:30 +04:00
) }
/ >
< Separator className = "ppcp-r-page-welcome-mode-separator" / >
< BadgeBox
title = { _ _ ( 'Alternative Payment Methods' , 'woocommerce-paypal-payments' ) }
imageBadge = { [ 'icon-button-sepa.svg' , 'icon-button-ideal.svg' , 'icon-button-blik.svg' , 'icon-button-bancontact.svg' ] }
2024-11-25 19:00:21 +04:00
textBadge = { generatePriceText ( 'apm' , countryPriceInfo [ storeCountry ] , storeCurrency ) }
2024-11-12 19:23:30 +04:00
description = { sprintf (
2024-11-25 19:00:21 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-12 19:23:30 +04:00
_ _ (
'Seamless payments for customers across the globe using their preferred payment methods. <a target="_blank" href="%s">Learn more</a>' ,
'woocommerce-paypal-payments'
) ,
2024-11-25 19:00:21 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-12 19:23:30 +04:00
) }
/ >
< / d i v >
< / d i v >
) ;
} ;
export default AcdcFlow ;