2024-11-25 20:47:13 -04:00
import { _ _ , sprintf } from '@wordpress/i18n' ;
2024-12-12 16:55:19 +01:00
import BadgeBox from '../BadgeBox' ;
2024-11-25 20:47:13 -04:00
import Separator from '../Separator' ;
2024-12-12 16:55:19 +01:00
import PricingTitleBadge from '../PricingTitleBadge' ;
2024-11-25 20:47:13 -04:00
const AcdcOptionalPaymentMethods = ( {
isFastlane ,
isPayLater ,
storeCountry ,
} ) => {
2024-12-02 18:15:07 -04:00
if ( isFastlane && isPayLater && storeCountry === 'US' ) {
2024-11-25 20:47:13 -04:00
return (
< div className = "ppcp-r-optional-payment-methods__wrapper" >
< 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-12-12 17:54:38 +01:00
textBadge = { < PricingTitleBadge item = "ccf" / > }
2024-11-25 20:47:13 -04:00
description = { sprintf (
2024-11-26 16:10:35 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-25 20:47:13 -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-26 16:10:35 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-25 20:47:13 -04:00
) }
/ >
2024-11-26 18:34:57 +04:00
< Separator className = "ppcp-r-optional-payment-methods__separator" / >
2024-11-25 20:47:13 -04:00
< BadgeBox
title = { _ _ (
'Digital Wallets' ,
'woocommerce-paypal-payments'
) }
imageBadge = { [
'icon-button-apple-pay.svg' ,
'icon-button-google-pay.svg' ,
] }
2024-12-12 17:54:38 +01:00
textBadge = { < PricingTitleBadge item = "dw" / > }
2024-11-25 20:47:13 -04:00
description = { sprintf (
2024-11-26 16:10:35 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-25 20:47:13 -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-26 16:10:35 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-25 20:47:13 -04:00
) }
/ >
2024-11-26 18:34:57 +04:00
< Separator className = "ppcp-r-optional-payment-methods__separator" / >
2024-11-25 20:47:13 -04:00
< BadgeBox
title = { _ _ (
'Alternative Payment Methods' ,
'woocommerce-paypal-payments'
) }
imageBadge = { [
'icon-button-ideal.svg' ,
'icon-button-blik.svg' ,
'icon-button-bancontact.svg' ,
] }
2024-12-12 17:54:38 +01:00
textBadge = { < PricingTitleBadge item = "apm" / > }
2024-11-25 20:47:13 -04:00
description = { sprintf (
2024-11-26 16:10:35 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-25 20:47:13 -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-26 16:10:35 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-25 20:47:13 -04:00
) }
/ >
2024-11-26 18:34:57 +04:00
< Separator className = "ppcp-r-optional-payment-methods__separator" / >
2024-11-25 20:47:13 -04:00
< BadgeBox
title = { _ _ ( '' , 'woocommerce-paypal-payments' ) }
imageBadge = { [ 'icon-payment-method-fastlane-small.svg' ] }
2024-12-12 16:55:19 +01:00
textBadge = {
< PricingTitleBadge item = "fast country currency=storeCurrency=storeCountrylane" / >
}
2024-11-25 20:47:13 -04:00
description = { sprintf (
2024-11-26 16:10:35 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-25 20:47:13 -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-26 16:10:35 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-25 20:47:13 -04:00
) }
/ >
< / d i v >
) ;
}
if ( isPayLater && storeCountry === 'uk' ) {
return (
< div className = "ppcp-r-optional-payment-methods__wrapper" >
< 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-12-12 17:54:38 +01:00
textBadge = { < PricingTitleBadge item = "ccf" / > }
2024-11-25 20:47:13 -04:00
description = { sprintf (
2024-11-26 16:10:35 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-25 20:47:13 -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-26 16:10:35 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-25 20:47:13 -04:00
) }
/ >
2024-11-26 18:34:57 +04:00
< Separator className = "ppcp-r-optional-payment-methods__separator" / >
2024-11-25 20:47:13 -04:00
< BadgeBox
title = { _ _ (
'Digital Wallets' ,
'woocommerce-paypal-payments'
) }
imageBadge = { [
'icon-button-apple-pay.svg' ,
'icon-button-google-pay.svg' ,
] }
2024-12-12 17:54:38 +01:00
textBadge = { < PricingTitleBadge item = "dw" / > }
2024-11-25 20:47:13 -04:00
description = { sprintf (
2024-11-26 16:10:35 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-25 20:47:13 -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-26 16:10:35 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-25 20:47:13 -04:00
) }
/ >
2024-11-26 18:34:57 +04:00
< Separator className = "ppcp-r-optional-payment-methods__separator" / >
2024-11-25 20:47:13 -04:00
< 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-12-12 17:54:38 +01:00
textBadge = { < PricingTitleBadge item = "apm" / > }
2024-11-25 20:47:13 -04:00
description = { sprintf (
2024-11-26 16:10:35 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-25 20:47:13 -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-26 16:10:35 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-25 20:47:13 -04:00
) }
/ >
< / d i v >
) ;
}
return (
< div className = "ppcp-r-optional-payment-methods__wrapper" >
< 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-12-12 17:54:38 +01:00
textBadge = { < PricingTitleBadge item = "ccf" / > }
2024-11-25 20:47:13 -04:00
description = { sprintf (
2024-11-26 16:10:35 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-25 20:47:13 -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-26 16:10:35 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-25 20:47:13 -04:00
) }
/ >
2024-11-26 18:34:57 +04:00
< Separator className = "ppcp-r-optional-payment-methods__separator" / >
2024-11-25 20:47:13 -04:00
< BadgeBox
title = { _ _ ( 'Digital Wallets' , 'woocommerce-paypal-payments' ) }
imageBadge = { [
'icon-button-apple-pay.svg' ,
'icon-button-google-pay.svg' ,
] }
2024-12-12 17:54:38 +01:00
textBadge = { < PricingTitleBadge item = "dw" / > }
2024-11-25 20:47:13 -04:00
description = { sprintf (
2024-11-26 16:10:35 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-25 20:47:13 -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-26 16:10:35 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-25 20:47:13 -04:00
) }
/ >
2024-11-26 18:34:57 +04:00
< Separator className = "ppcp-r-optional-payment-methods__separator" / >
2024-11-25 20:47:13 -04:00
< 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-12-12 17:54:38 +01:00
textBadge = { < PricingTitleBadge item = "apm" / > }
2024-11-25 20:47:13 -04:00
description = { sprintf (
2024-11-26 16:10:35 +04:00
// translators: %s: Link to PayPal business fees guide
2024-11-25 20:47:13 -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-26 16:10:35 +04:00
'https://www.paypal.com/us/business/paypal-business-fees'
2024-11-25 20:47:13 -04:00
) }
/ >
< / d i v >
) ;
} ;
export default AcdcOptionalPaymentMethods ;