mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Adds nonce validation to refresh feature status request.
This commit is contained in:
parent
d2abeb5dbf
commit
81f606912f
2 changed files with 30 additions and 12 deletions
|
@ -354,9 +354,8 @@ document.addEventListener(
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
(() => {
|
||||
const props = PayPalCommerceGatewaySettings.ajax.refresh_feature_status;
|
||||
// Logic to handle the "Check available features" button.
|
||||
((props) => {
|
||||
const $btn = jQuery(props.button);
|
||||
|
||||
$btn.click(async () => {
|
||||
|
@ -388,7 +387,7 @@ document.addEventListener(
|
|||
}
|
||||
});
|
||||
|
||||
})();
|
||||
})(PayPalCommerceGatewaySettings.ajax.refresh_feature_status);
|
||||
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue