From c857f05dbbc932cec6e85c83f9ed908449c61da6 Mon Sep 17 00:00:00 2001 From: yixian Date: Fri, 10 Apr 2020 13:43:17 +0800 Subject: [PATCH] update cardpay ui --- src/main/ui/static/templates/payment/v1/card_pay.js | 7 +++++++ 1 file changed, 7 insertions(+) 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(); + } } }) };