Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zyinCode opened this issue May 26, 2023 · 1 comment
Open

Comments

@zyinCode
Copy link

下单,支付都正常,用的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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant