gateway jsapi update

master
yixian 7 years ago
parent 9feb531c12
commit d679cfc334

@ -6,6 +6,9 @@ $(document).ready(function () {
decode();
function decode() {
if (window.client_moniker == 'PINE') {
alert('debug:origin redirect:' + window.redirect);
}
var redirect = window.redirect;
while (redirect.indexOf('://') < 0) {
redirect = decodeURIComponent(redirect);
@ -68,6 +71,9 @@ $(document).ready(function () {
function callPayment(tradeNo) {
try {
if (window.client_moniker == 'PINE') {
alert('debug:trade no=' + tradeNo)
}
AlipayJSBridge.call('tradePay', {
tradeNO: tradeNo
}, function (res) {

Loading…
Cancel
Save