KevinWG / OSS.Clients.Pay

开源支付SDK(标准库),主要打造微信支付,支付宝支付,标准库项目,同时支持.net framework和.net core
http://www.osscore.com
Apache License 2.0
330 stars 124 forks source link

请教一下 微信回调的时候。验证微信支付签名失败 #56

Open zyinCode opened 1 year ago

zyinCode commented 1 year ago

下单,支付都正常,用的jsapi。我是回调里是这样写的,下单,支付都正常。 ### var notify = await new WechatNotifyReceiver(dic, body).DecrytToPayResult(WechatPayHelper.pay_config.api_v3_key); 然后dic 内容是这样的 {"Wechatpay-Signature":"hZ0Xsm9oYYzPubnydy/zv8fgtMyFcr2JZN0m8PcOAxH8SMlq096jv1aGcmTpgU13o0RdMQeqfrCS9P+Rq6MEIExSCwGjGG1A20OuUpgjLTi1c1fcv3alAf2Pu/qdoFHXfipUcYq9mWcZNTXVHiJxnnT+edhq9KhTjNThxY7NhukOxR3scVS1qJQ+JFkKEstsxDfYlP18OPwEmZqTDZpueAqRAIZoeUBYGhgpu9YKaAsEKVF0IDPkT84cV0De0FhgiOoELDU22eskk8MQAsFYML/ppjtlLgVFO0oYfGjzFuCq7G0ph+T8PYSaZoy6kK8fOzZR/XHY59zJS0uHTlErHw==","Wechatpay-Nonce":"t7W6sPtmW4UeMr2VbTJEG0nctOgmmMJr","Wechatpay-Timestamp":"1685089339","Wechatpay-Serial":"6C16391AD9023D772D36540320A4794B8697FA87"}

body内容是这样 {"id":"f5702c76-11c7-5227-881a-dddddedba03a","create_time":"2023-05-26T16:22:19+08:00","event_type":"TRANSACTION.SUCCESS","resource_type":"encrypt-resource","resource":{"algorithm":"AEAD_AES_256_GCM","ciphertext":"P3o6+nvOhrAO+t2acO5GrHTfwaOQKbBywTO+JRMfd3JoJ4bB67g2k1FpFyBcgTlH+3LALmx0uLEG3LVPKQAy4QkXxnlz/288yVkD0lCBuhnOqskOVCt1nNqdn6XHL6jM6PoKCS38ASRrOKayZ0sc3rox7wa0rthxbfoTsKYlZ9U59R4gA/lTSl1CGRrUEcrv0N4V88YEAQ/ZqJWvwa7DOz+ErSyNIhWqjAiLbYo5KQV/Z1Hxk2/i3MpegcxeXwI/uWz0xX4CfSXZ6MknMEPR1VvqYfWEAhR+4nsL9h/i/5tK9m/woTbR3oa5IcRU5KBn450O3RW3aNNlGE4x1XHmNCyqLjo8MRsHuT4bBluNYhjGEnu9F+Rl1/iUSwZqW57e341g8SItQzbFWpXZ/0E1FMHlz4rdBMuTWN69YiM2w6UciqClv0KHPdV4JU6+f8UVyBFhxL/9Zl0GbdhjM47N6dEBv53KdlzIJiodYYHBe4LRq46xbVO7OiU7vSp+HzG3FqstVs6kFUVMrwSHjhhfijfp7JfgLYRB4JAY793L6LXjoL1tEn7+0ktZL2RvBA2VOwOVGjumuF8=","associated_data":"transaction","original_type":"transaction","nonce":"vfsJl0dDHWuz","summary":null},"summary":"支付成功","code":0,"sys_code":0,"msg":null} 但是一直验证失败是什么原因呢

zyinCode commented 1 year ago

是参数不对还是调用不对还是怎么样?