我正在尝试实施WeChat
支付,一切都完成了,但是当我 PayReq 发送时,WeChat
应用程序将打开,而不仅仅是这种只有“确定”按钮的图像显示,当我点击确定按钮时,它返回到我的应用程序并得到“ (null)' 返回键。
返回信息是:
//代码:
PayReq* req = [[[PayReq alloc] init]autorelease];
req.partnerId = [dicParams objectForKey:@"mch_id"];
req.prepayId = [dicParams objectForKey:@"prepay_id"];
req.nonceStr = [dicParams objectForKey:@"nonce_str"];
req.timeStamp = timeStamp;
req.package = @"Sign=WXPay";
req.sign = [dicParams objectForKey:@"sign"];
[WXApi sendReq:req];
返回值:
://pay/?returnKey=(null)&ret=-2