mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
✨ New action to refresh merchant data from server
This commit is contained in:
parent
c97464d7e2
commit
b4d1596fd1
6 changed files with 70 additions and 0 deletions
|
@ -180,3 +180,12 @@ export const connectViaIdAndSecret = function* () {
|
|||
useSandbox,
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
* Side effect. Clears and refreshes the merchant data via a REST request.
|
||||
*
|
||||
* @return {Action} The action.
|
||||
*/
|
||||
export const refreshMerchantData = function* () {
|
||||
return yield { type: ACTION_TYPES.DO_REFRESH_MERCHANT };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue