Skip to main content
These are the requirements and steps for decrypting a webhook.
Structure of the message that our webhooks send
Secret is used to decrypt the webhook payload.
Standard decryption for aes-256-cbc using the data, the iv, and the secret returned during the webhook registration.
1

Converts the hexadecimal IV to a byte buffer

  • [Recommendation] Check if the key length is 32 bytes, which is the required size for the AES-256 encryption algorithm.
TypeScript Example
  • Converts the hexadecimal IV to a byte buffer.
TypeScript Example
2

Decryption

  • Creates a decryptor object using the AES-256 algorithm in CBC (Cipher Block Chaining) mode, the key and the IV.
TypeScript Example
  • Start decrypting the data and store the result.
TypeScript Example
Disclaimer: All technical documentation is subject to the terms and conditions, which apply supplementarily and take precedence over the documentation.