diff --git a/modules/ppcp-settings/resources/js/Components/Screens/Settings/Components/Settings/Blocks/SavePaymentMethods.js b/modules/ppcp-settings/resources/js/Components/Screens/Settings/Components/Settings/Blocks/SavePaymentMethods.js index 9b77076e2..e1e15670a 100644 --- a/modules/ppcp-settings/resources/js/Components/Screens/Settings/Components/Settings/Blocks/SavePaymentMethods.js +++ b/modules/ppcp-settings/resources/js/Components/Screens/Settings/Components/Settings/Blocks/SavePaymentMethods.js @@ -3,6 +3,7 @@ import { __, sprintf } from '@wordpress/i18n'; import SettingsBlock from '../../../../../ReusableComponents/SettingsBlock'; import { ControlToggleButton } from '../../../../../ReusableComponents/Controls'; import { SettingsHooks } from '../../../../../../data'; +import { useMerchantInfo } from '../../../../../../data/common/hooks'; const SavePaymentMethods = () => { const { @@ -12,6 +13,8 @@ const SavePaymentMethods = () => { setSaveCardDetails, } = SettingsHooks.useSettings(); + const { features } = useMerchantInfo(); + return ( { 'https://woocommerce.com/document/woocommerce-paypal-payments/#pay-later', 'https://woocommerce.com/document/woocommerce-paypal-payments/#alternative-payment-methods' ) } - value={ savePaypalAndVenmo } + value={ + features.save_paypal_and_venmo.enabled + ? savePaypalAndVenmo + : false + } onChange={ setSavePaypalAndVenmo } + disabled={ ! features.save_paypal_and_venmo.enabled } />