mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
💡 Add some comments
This commit is contained in:
parent
6b952a7d97
commit
4aca1b2347
1 changed files with 5 additions and 0 deletions
|
@ -92,6 +92,7 @@ const TabPaymentMethods = () => {
|
|||
method={ getActiveMethod() }
|
||||
setModalIsVisible={ () => setActiveModal( null ) }
|
||||
onSave={ ( methodId, settings ) => {
|
||||
// TODO: Use the changePaymentSettings action.
|
||||
setPersistent( methodId, {
|
||||
...getActiveMethod(),
|
||||
title: settings.checkoutPageTitle,
|
||||
|
@ -99,24 +100,28 @@ const TabPaymentMethods = () => {
|
|||
} );
|
||||
|
||||
if ( 'paypalShowLogo' in settings ) {
|
||||
// TODO: Create a dedicated setter for this value.
|
||||
setPersistent(
|
||||
'paypalShowLogo',
|
||||
settings.paypalShowLogo
|
||||
);
|
||||
}
|
||||
if ( 'threeDSecure' in settings ) {
|
||||
// TODO: Create a dedicated setter for this value.
|
||||
setPersistent(
|
||||
'threeDSecure',
|
||||
settings.threeDSecure
|
||||
);
|
||||
}
|
||||
if ( 'fastlaneCardholderName' in settings ) {
|
||||
// TODO: Create a dedicated setter for this value.
|
||||
setPersistent(
|
||||
'fastlaneCardholderName',
|
||||
settings.fastlaneCardholderName
|
||||
);
|
||||
}
|
||||
if ( 'fastlaneDisplayWatermark' in settings ) {
|
||||
// TODO: Create a dedicated setter for this value.
|
||||
setPersistent(
|
||||
'fastlaneDisplayWatermark',
|
||||
settings.fastlaneDisplayWatermark
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue