xiubin
V2EX  ›  iOS

微信支付: appid 未关联 paysignkey

  •  
  •   xiubin · Jul 12, 2017 · 4189 views
    This topic created in 3256 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   ·   3912 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 10:16 · PVG 18:16 · LAX 03:16 · JFK 06:16
    ♥ Do have faith in what you're doing.