diff --git a/plugins/Paypal/Views/checkout/payment.blade.php b/plugins/Paypal/Views/checkout/payment.blade.php index 5c1cf7a7..ef01ed7c 100644 --- a/plugins/Paypal/Views/checkout/payment.blade.php +++ b/plugins/Paypal/Views/checkout/payment.blade.php @@ -26,8 +26,14 @@ return res.json(); }).then(function (orderData) { if (orderData.error) { - layer.alert(orderData.error.details[0].description, function(index){ - window.location.reload(); + layer.alert(orderData.error.details[0].description, { + title: '{{ __('common.text_hint') }}', + closeBtn: 0, + area: ['400px', '240px'], + btn: ['{{ __('common.confirm') }}'] + }, function(index) { + window.location.reload(); + layer.close(index); }); } return orderData.id;