Returning code for redirection on payment completed

This commit is contained in:
lepipele 2017-10-27 00:13:14 -05:00
parent 009444951a
commit 33cf4066d8
2 changed files with 9 additions and 9 deletions

View File

@ -397,7 +397,7 @@
<!---->
<button class="action-button" style="margin-top: 0px;">
<bp-done-text>
<span i18n="" class="i18n-return-to-merchant">Return to {{srvModel.StoreName}}</span>
<span i18n="" class="i18n-return-to-merchant">Return to {{srvModel.storeName}}</span>
</bp-done-text>
</button>
</div>

View File

@ -155,14 +155,14 @@ function onDataCallback(jsonData) {
$(".modal-dialog").removeClass("expired");
}
//if (srvModel.merchantRefLink != "") {
// $(".action-button").click(function () {
// window.location.href = srvModel.merchantRefLink;
// });
//}
//else {
// $(".action-button").hide();
//}
if (srvModel.merchantRefLink != "") {
$(".action-button").click(function () {
window.location.href = srvModel.merchantRefLink;
});
}
else {
$(".action-button").hide();
}
$(".modal-dialog").addClass("paid");