还原一码付微信H5支付,这里用微信内置浏览器无法使用,近期切换jsapi进行修复

This commit is contained in:
egzosn
2017-11-14 16:11:33 +08:00
parent c4ed728fe2
commit a150310d48
2 changed files with 3 additions and 3 deletions

View File

@@ -246,7 +246,7 @@ public class PayController {
html.append("if(isWxPay()){\n");
html.append("window.location='");
//这里使用H5支付公众号支付是否可以请开发者自行尝试
html.append(url.toString()).append("?payId=").append(wxPayId).append("&transactionType=").append(WxTransactionType.JSAPI.getType()).append("&price=").append(price);
html.append(url.toString()).append("?payId=").append(wxPayId).append("&transactionType=").append(WxTransactionType.MWEB.getType()).append("&price=").append(price);
html.append("';\n }else\n");
}

View File

@@ -51,8 +51,8 @@ public class ApyAccountRepository {
apyAccount2.setPartner("1469188802");
apyAccount2.setAppid("wx3344f4aed352deae");
// TODO 2017/2/9 16:20 author: egan sign_type只有单一key时public_key与private_key相等比如sign_type=MD5的情况
apyAccount2.setPublicKey("991ded0800933ccf8736ab4f7fc61095");
apyAccount2.setPrivateKey("991ded0800933ccf8736ab4f7fc61095");
apyAccount2.setPublicKey("991ded080***************f7fc61095");
apyAccount2.setPrivateKey("991ded080***************f7fc61095");
apyAccount2.setNotifyUrl("http://pay.egzosn.com/payBack2.json");
// 无需同步回调可不填
apyAccount2.setReturnUrl("http://pay.egzosn.com");