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 83c405f7b..2cbd7be32 100644 --- a/src/main/ui/static/templates/payment/v1/card_pay.js +++ b/src/main/ui/static/templates/payment/v1/card_pay.js @@ -21,12 +21,13 @@ $(function () { if (msg && msg.type == '3dsResult') { evt.stopPropagation(); evt.stopImmediatePropagation(); - $('.threeds-container').addClass('hide'); + if (msg.success) { location.href = './result' } else { $errorMsgBox.text('[' + evt.errCode + ']' + evt.errMsg).show(); } + $('.threeds-container').addClass('hide'); } }) if (window.three_ds_params) {