Payment Kit Webhook Signatures
Hello Team,
I have a few questions.
- How do we retrieve webhook signing secret for Payment Kit webhooks created in Blocklet dashboard?
- Which header contains the signature (X-Hub-Signature-256?) and exact verification algorithm?
- Is there an official Node helper for signature verification in @blocklet/payment-js?
- Are webhook event IDs globally unique and stable for idempotency?
- Do they publish webhook source IP ranges?
Any insight into these would be very helpful in helping me setup my automated system.
Thank you,
Mario
7 条回复
What specific scenario are you trying to solve? You can describe in detail what you want to do and the problems you are currently encountering.
Hi ArcBlock team, we’re implementing production webhook security for Payment Kit and need exact verification details.
Context:
Questions:
Thanks. A code sample for verification in Node would be very helpful.
Hi, the current webhook in blocklet server do not have a signing mechanism, you can just embed the auth token in the webhook URL.
Will ship a new version with a more secure signature mechanism soon.
Thank you! Here is short video demonstrating how I'm using the payment kit.
Hi, latest blocklet server beta: 1.17.11-beta-20260227-073629-1efb93f4 is out, there is a stripe alike signing mechanism, you can upgrade to latest version, and try figure out how to obtain or rotate signing secret for your webhook endpoint.
Here is an example on how to verify the signature:
thank you.. works great! Perhaps a rotate key button if possible would help for quick refresh.