mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-03 08:37:53 +08:00
Throw on createOrder failure to stop PayPal from attempting to continue
This commit is contained in:
parent
da539ed578
commit
bb86f1b8e6
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ class CheckoutActionHandler {
|
|||
}
|
||||
}
|
||||
|
||||
return;
|
||||
throw new Error(data.data.message);
|
||||
}
|
||||
const input = document.createElement('input');
|
||||
input.setAttribute('type', 'hidden');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue