V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
xiubin
V2EX  ›  iOS

微信支付: appid 未关联 paysignkey

  •  
  •   xiubin · 2017-07-12 14:47:43 +08:00 · 3737 次点击
    这是一个创建于 2501 天前的主题,其中的信息可能已经有所发展或是发生改变。

    微信支付操作中的签名等都是在后台做的安卓端是可以正常支付,但是 iOS 端微信一直在弹窗提示:“ appid 未关联 paysignkey ”

    返回的 Response errCode=-2 errStr=nil type=0

    代码:

    WXApi.registerApp("wxxxxxxxxxxxx1")
    
    let request = PayReq()
    request.partnerId = "14xxxxxxx2";
    request.prepayId = String(describing: dict["prepay_id"]);
    request.package = "Sign=WXPay";
    request.nonceStr = dict["nonce_str"] as! String;
    let time:Int = Int(dict["timestamp"] as! String)!
    let time32 = UInt32(truncatingBitPattern: time)
    request.timeStamp = time32
    request.sign = dict["sign"] as! String;
    return request
    

    请问下都会有什么原因呢?

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2482 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 02:06 · PVG 10:06 · LAX 19:06 · JFK 22:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.