mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Merge pull request #3162 from woocommerce/PCP-4252-subscriptions-product-without-reference-transactions-but-with-acdc
Subscriptions product without reference transactions but with ACDC (4252)
This commit is contained in:
commit
59524bbe71
1 changed files with 9 additions and 1 deletions
|
@ -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 (
|
||||
<SettingsBlock
|
||||
title={ __(
|
||||
|
@ -38,8 +41,13 @@ const SavePaymentMethods = () => {
|
|||
'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 }
|
||||
/>
|
||||
|
||||
<ControlToggleButton
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue