@@ -16,9 +22,10 @@ const BcdcOptionalPaymentMethods = ( { isPayLater, storeCountry } ) => {
'icon-button-amex.svg',
'icon-button-discover.svg',
] }
- textBadge={ __(
- 'from 2.59% + $0.49 USD
1',
- 'woocommerce-paypal-payments'
+ textBadge={ generatePriceText(
+ 'standardCardFields',
+ countryPriceInfo[ storeCountry ],
+ storeCurrency
) }
description={ sprintf(
// translators: %s: Link to PayPal REST application guide
@@ -46,9 +53,10 @@ const BcdcOptionalPaymentMethods = ( { isPayLater, storeCountry } ) => {
'icon-button-amex.svg',
'icon-button-discover.svg',
] }
- textBadge={ __(
- 'from 3.40% + €0.35 EUR
1',
- 'woocommerce-paypal-payments'
+ textBadge={ generatePriceText(
+ 'standardCardFields',
+ countryPriceInfo[ storeCountry ],
+ storeCurrency
) }
description={ sprintf(
// translators: %s: Link to PayPal REST application guide
diff --git a/modules/ppcp-settings/resources/js/Components/ReusableComponents/OptionalPaymentMethods/OptionalPaymentMethods.js b/modules/ppcp-settings/resources/js/Components/ReusableComponents/OptionalPaymentMethods/OptionalPaymentMethods.js
index b83fad366..0ba17a2b2 100644
--- a/modules/ppcp-settings/resources/js/Components/ReusableComponents/OptionalPaymentMethods/OptionalPaymentMethods.js
+++ b/modules/ppcp-settings/resources/js/Components/ReusableComponents/OptionalPaymentMethods/OptionalPaymentMethods.js
@@ -6,6 +6,8 @@ const OptionalPaymentMethods = ( {
isFastlane,
isPayLater,
storeCountry,
+ storeCurrency,
+ countryPriceInfo,
} ) => {
return (
@@ -14,11 +16,15 @@ const OptionalPaymentMethods = ( {
isFastlane={ isFastlane }
isPayLater={ isPayLater }
storeCountry={ storeCountry }
+ storeCurrency={ storeCurrency }
+ countryPriceInfo={ countryPriceInfo }
/>
) : (
) }
diff --git a/modules/ppcp-settings/resources/js/Components/ReusableComponents/WelcomeDocs/AcdcFlow.js b/modules/ppcp-settings/resources/js/Components/ReusableComponents/WelcomeDocs/AcdcFlow.js
index 5f713b3ee..3ef3e422d 100644
--- a/modules/ppcp-settings/resources/js/Components/ReusableComponents/WelcomeDocs/AcdcFlow.js
+++ b/modules/ppcp-settings/resources/js/Components/ReusableComponents/WelcomeDocs/AcdcFlow.js
@@ -2,6 +2,7 @@ import BadgeBox, { BADGE_BOX_TITLE_BIG } from '../BadgeBox';
import { __, sprintf } from '@wordpress/i18n';
import Separator from '../Separator';
import generatePriceText from '../../../utils/badgeBoxUtils';
+import OptionalPaymentMethods from '../OptionalPaymentMethods/OptionalPaymentMethods';
const AcdcFlow = ( {
isFastlane,
@@ -20,9 +21,10 @@ const AcdcFlow = ( {
'woocommerce-paypal-payments'
) }
titleType={ BADGE_BOX_TITLE_BIG }
- textBadge={ __(
- 'from 3.49% + $0.49 USD
1',
- 'woocommerce-paypal-payments'
+ textBadge={ generatePriceText(
+ 'checkout',
+ countryPriceInfo[ storeCountry ],
+ storeCurrency
) }
description={ __(
'Our all-in-one checkout solution lets you offer PayPal, Venmo, Pay Later options, and more to help maximise conversion',
@@ -108,96 +110,13 @@ const AcdcFlow = ( {
'woocommerce-paypal-payments'
) }
/>
-
1',
- 'woocommerce-paypal-payments'
- ) }
- description={ sprintf(
- // translators: %s: Link to PayPal business fees guide
- __(
- 'Style the credit card fields to match your own style. Includes advanced processing with risk management, 3D Secure, fraud protection options, and chargeback protection. Learn more',
- 'woocommerce-paypal-payments'
- ),
- 'https://www.paypal.com/us/business/paypal-business-fees'
- ) }
- />
-
- 1',
- 'woocommerce-paypal-payments'
- ) }
- description={ sprintf(
- // translators: %s: Link to PayPal business fees guide
- __(
- 'Accept Apple Pay on eligible devices and Google Pay through mobile and web. Learn more',
- 'woocommerce-paypal-payments'
- ),
- 'https://www.paypal.com/us/business/paypal-business-fees'
- ) }
- />
-
- 1',
- 'woocommerce-paypal-payments'
- ) }
- description={ sprintf(
- // translators: %s: Link to PayPal business fees guide
- __(
- 'Seamless payments for customers across the globe using their preferred payment methods. Learn more',
- 'woocommerce-paypal-payments'
- ),
- 'https://www.paypal.com/us/business/paypal-business-fees'
- ) }
- />
-
- 1',
- 'woocommerce-paypal-payments'
- ) }
- description={ sprintf(
- // translators: %s: Link to PayPal business fees guide
- __(
- 'Speed up guest checkout with Fatslane. Link a customer\'s email address to their payment details. Learn more',
- 'woocommerce-paypal-payments'
- ),
- 'https://www.paypal.com/us/business/paypal-business-fees'
- ) }
+
@@ -214,9 +133,10 @@ const AcdcFlow = ( {
'woocommerce-paypal-payments'
) }
titleType={ BADGE_BOX_TITLE_BIG }
- textBadge={ __(
- 'from 2.90% + £0.30 GBP