mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
New Settings UI: Add optional payment methods step
This commit is contained in:
parent
7d0504e181
commit
4d729cd5dc
19 changed files with 987 additions and 490 deletions
|
@ -80,6 +80,19 @@ export const setIsCasualSeller = ( isCasualSeller ) => ( {
|
|||
payload: { isCasualSeller },
|
||||
} );
|
||||
|
||||
/**
|
||||
* Persistent. Sets the "areOptionalPaymentMethodsEnabled" value.
|
||||
*
|
||||
* @param {boolean} areOptionalPaymentMethodsEnabled
|
||||
* @return {Action} The action.
|
||||
*/
|
||||
export const setAreOptionalPaymentMethodsEnabled = (
|
||||
areOptionalPaymentMethodsEnabled
|
||||
) => ( {
|
||||
type: ACTION_TYPES.SET_PERSISTENT,
|
||||
payload: { areOptionalPaymentMethodsEnabled },
|
||||
} );
|
||||
|
||||
/**
|
||||
* Persistent. Sets the "products" array.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue