diff --git a/src/main/ui/static/templates/payment/v1/card_pay.js b/src/main/ui/static/templates/payment/v1/card_pay.js index 8f45e321f..22cbcd1cd 100644 --- a/src/main/ui/static/templates/payment/v1/card_pay.js +++ b/src/main/ui/static/templates/payment/v1/card_pay.js @@ -9,6 +9,13 @@ $(function () { method: 'POST', success: function () { startCheckOrder(window.client_moniker, window.partner_order_id); + }, + error: function (jqXHR) { + let errorText = jqXHR.responseText; + let err = JSON.parse(errorText); + if(err){ + $('#errorMsgBox').text(err.message).show(); + } } }) };