We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c571194 + d4824ec commit b488bd5Copy full SHA for b488bd5
com/alipay/ams/api/tools/webhook_tool.py
@@ -0,0 +1,10 @@
1
+from com.alipay.ams.api.exception.exception import AlipayApiException
2
+
3
+from com.alipay.ams.api.tools.signature_tool import verify
4
5
6
+def check_signature(http_method, path, client_id, rsp_time_str, rsp_body, signature, alipay_public_key):
7
+ if signature and 'signature=' in signature:
8
+ signature = signature.split('signature=')[1]
9
+ return verify(http_method, path, client_id, rsp_time_str, rsp_body, signature, alipay_public_key)
10
+ raise AlipayApiException('signature invalid:' + str(signature))
0 commit comments