V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
xiubin
V2EX  ›  iOS

微信支付: appid 未关联 paysignkey

  •  
  •   xiubin · Jul 12, 2017 · 4136 views
    This topic created in 3217 days ago, the information mentioned may be changed or developed.

    微信支付操作中的签名等都是在后台做的安卓端是可以正常支付,但是 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
    

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

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   998 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 17:59 · PVG 01:59 · LAX 10:59 · JFK 13:59
    ♥ Do have faith in what you're doing.