mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Add error details for order creation
This commit is contained in:
parent
d2f257a812
commit
b98f59b4ed
1 changed files with 5 additions and 1 deletions
|
@ -48,7 +48,11 @@ class CheckoutActionHandler {
|
|||
.querySelector('ul')
|
||||
);
|
||||
} else {
|
||||
errorHandler.message(data.data.message, true);
|
||||
if (data.data.details.length > 0) {
|
||||
errorHandler.message(data.data.details[0].issue + ' ' + data.data.details[0].description, true);
|
||||
} else {
|
||||
errorHandler.message(data.data.message, true);
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue