Throw on createOrder failure to stop PayPal from attempting to continue

This commit is contained in:
Alex P 2022-06-08 16:01:38 +03:00
parent da539ed578
commit bb86f1b8e6

View file

@ -61,7 +61,7 @@ class CheckoutActionHandler {
} }
} }
return; throw new Error(data.data.message);
} }
const input = document.createElement('input'); const input = document.createElement('input');
input.setAttribute('type', 'hidden'); input.setAttribute('type', 'hidden');