收藏
回答

go语言版的SDK支付回调报错

      日志如下:    "error": "invalid notification, err: validate verify fail serial=[6FBDCE891B76D04F4E108181845E498030CED3DB] request-id=[] err=verify signature with public key err:crypto/rsa: verification error, request: &{Method:POST URL:/tools/order/wechatNotify Proto:HTTP/1.1 ProtoMajor:1 ProtoMinor:1 Header:map[Accept:[*/*] Cache-Control:[no-cache] Connection:[Keep-Alive] Content-Length:[911] Content-Type:[application/json] Log-Id:[35938442926886917] Pragma:[no-cache] User-Agent:[Mozilla/4.0] Wechatpay-Nonce:[3vlWsMb8hM7a] Wechatpay-Serial:[6FBDCE891B76D04F4E108181845E498030CED3DB] Wechatpay-Signature:[WECHATPAY/SIGNTEST/rjoUXHTBmSWooatOWFwzbU0dqJDlrSKUg4dEP6zFxPpgpqmqLig6YvPILdIagGzR7EW4IxCKbvuV93FvNnB7+o8obqHCTolA21JE3BJTDFfooYBe+xffJwu+G3RL092TTXRBJr01EXsAY1DWASTDRQcbnlQjipoXyNcYRIslmXBwfERBKMSj3rdXGo0IJWHRkQ0CbFxvCxo5OFXFO5WewY6ZYq39q8hxKxgSWh2oo8Q7LdfBqj5Z2m0fC3yRunuHSPdJxUloMTvB0tcZTXUu7oeX/hiPYgH6y3p1UtTo0RIHx8C1NCBAnpMkUgnSQDjNIVw==] Wechatpay-Signature-Type:[WECHATPAY2-SHA256-RSA2048] Wechatpay-Timestamp:[1719230681]] Body:{Reader:{\"id\":\"d083fb31-367e-51d2-a370-9d77eb585d4e\",\"create_time\":\"2024-06-24T11:26:48+08:00\",\"resource_type\":\"encrypt-resource\",\"event_type\":\"TRANSACTION.SUCCESS\",\"summary\":\"支付成功\",\"resource\":{\"original_type\":\"transaction\",\"algorithm\":\"AEAD_AES_256_GCM\",\"ciphertext\":\"j7E7xYVymbn/b0cd3/E3OzElvTbGWEH/rD2/dO8eicWSCLQCUsMb/uz7RsmNcMhX8e8D/g/PRsNtmI4sJuHUw5RopWwK7Axzb/Qgkkx/EuTTAE+Ld2NsdGhCo+EY6iNHvi3Y/RsjNPvpL/x7+pxsD9AZnf7pHXU1BQKPsCOWOV/36/yymCukvqnPBMsLqvrENTZui41CY/HHozPRr/M/ENeuCQN0mGzzsM+/H8GvciIzPG/Ch1mDSqytgzpcHT2khNxAp2jHvrRliQWdrPxH87LomrtCUdTX+z/dJuaL+myy57SgD2beRKf8W0shwPskQDXbUmsdgv1piYwaEoPNvzJmhL/5ql1mFFcY7CYgDFsGCMxE9FJsrL/xMNvHjkSzCYZzcdlofG0dk+ztb+Li2TzYbcu9tqYeS3snB9rw6+NOwBb5UtWwp1DCqpxaQzMMCO7hBgg3H4Labo21o7iB0C0TDuOP0kJBpdbZ3RMYXBGQ92ElidqsDQLJDyzDQzPVhHRIxoL91K7IN+DEprG/8fp1u75+5MJqtV6waVffyhhe7MzQni4YOOBKQBl79PhMoRSlr74=\",\"associated_data\":\"transaction\",\"nonce\":\"F6y6ayp9Glf4\"}}} GetBody:<nil> ContentLength:911 TransferEncoding:[] Close:false Host:toolsj.cn Form:map[] PostForm:map[] MultipartForm:<nil> Trailer:map[] RemoteAddr:121.51.58.169:30212 RequestURI:/tools/order/wechatNotify TLS:0xc0000ce420 Cancel:<nil> Response:<nil> ctx:0xc000492050 pat:<nil> matches:[] otherValues:map[]}"

看body 的内容,是一次成功的支付,但是SDK解析失败?

提示说公钥验证失败?但是在这之前和之后,都有成功的支付回调,所以这是个偶发性问题。

回答关注问题邀请回答
收藏

1 个回答

  • 北望沣渭
    北望沣渭
    发表于移动端
    06-25
    谢邀,这是平台【周期性】探测商户服务稳健性的探测流量,标识为签名上的/SIGNTEST/字符串
    06-25
    有用
    回复
登录 后发表内容