mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Don't render the button if the user approved the payment
This commit is contained in:
parent
d500691730
commit
353deb1313
1 changed files with 4 additions and 4 deletions
|
@ -13,13 +13,13 @@ class CheckoutBootstap {
|
|||
return;
|
||||
}
|
||||
|
||||
if (document.querySelector(cancelWrapper)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const renderer = new Renderer(buttonWrapper);
|
||||
|
||||
jQuery(document.body).on('updated_checkout', () => {
|
||||
if (document.querySelector(cancelWrapper)) {
|
||||
return;
|
||||
}
|
||||
|
||||
renderer.render(this.configurator.configuration());
|
||||
|
||||
jQuery(document.body).trigger('payment_method_selected');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue