lokielse / omnipay-wechatpay

(微信支付)WeChatPay driver for the Omnipay PHP payment processing library
MIT License
316 stars 103 forks source link

ios `timeStamp` must be `string` #9

Closed vace closed 8 years ago

vace commented 8 years ago

...

lokielse commented 8 years ago

建议根据客户端的需要自行转换数据类型。

PayReq *request = [[PayReq alloc] init];
request.partnerId = data[@"partnerid"];
request.prepayId = data[@"prepayid"];
request.package = data[@"package"];
request.nonceStr = data[@"noncestr"];
request.timeStamp = (UInt32) [data[@"timestamp"] integerValue];
request.sign = data[@"sign"];
[WXApi sendReq:request];