mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 18:00:15 +08:00
✨ Add store action to update merchant details
This commit is contained in:
parent
e09ad9d74d
commit
67522b9557
3 changed files with 16 additions and 0 deletions
|
@ -110,6 +110,17 @@ export const setManualConnectionMode = ( useManualConnection ) =>
|
|||
export const setWebhooks = ( webhooks ) =>
|
||||
setPersistent( 'webhooks', webhooks );
|
||||
|
||||
/**
|
||||
* Replace merchant details in the store.
|
||||
*
|
||||
* @param {Object} merchant - The new merchant details.
|
||||
* @return {Action} The action.
|
||||
*/
|
||||
export const setMerchant = ( merchant ) => ( {
|
||||
type: ACTION_TYPES.SET_MERCHANT,
|
||||
payload: { merchant },
|
||||
} );
|
||||
|
||||
/**
|
||||
* Reset merchant details in the store.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue