New Settings UI: Add optional payment methods step

This commit is contained in:
Himad M 2024-11-25 20:47:13 -04:00
parent 7d0504e181
commit 4d729cd5dc
No known key found for this signature in database
GPG key ID: 5FC769E9888A7B98
19 changed files with 987 additions and 490 deletions

View file

@ -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.
*