retail support alipay+

master
yixian 4 years ago
parent 0eb612d53f
commit 37c6cff864

@ -32,6 +32,11 @@ $(document).ready(function () {
location.href = window.redirect; location.href = window.redirect;
return; return;
} }
if (pay.web_from) {
$('#alipay_plus').html(pay.web_from)
startCheckOrder(window.order_id, window.redirect);
return;
}
if (window.AlipayJSBridge) { if (window.AlipayJSBridge) {
callPayment(); callPayment();
} else { } else {

@ -24,7 +24,7 @@ $(document).ready(function () {
dataCache.paying = true; dataCache.paying = true;
$.ajax({ $.ajax({
url: '/api/v1.0/alipay/partners/' + window.client_moniker + '/orders/'+window.order_id+'/order_params', url: './order_params',
method: 'GET', method: 'GET',
dataType: 'json', dataType: 'json',
success: function (pay) { success: function (pay) {
@ -32,6 +32,11 @@ $(document).ready(function () {
location.href = window.redirect; location.href = window.redirect;
return; return;
} }
if (pay.web_from) {
$('#alipay_plus').html(pay.web_from)
startCheckOrder(window.order_id, window.redirect);
return;
}
if (window.AlipayJSBridge) { if (window.AlipayJSBridge) {
callPayment(); callPayment();
} else { } else {

Loading…
Cancel
Save