πΈοΈWebhook Signatures
Swapped Commerce Webhook Validation
To get the signature
Example with NodeJS
import crypto from 'crypto';
const secretKey = 'sk_test_key'; // Replace with your secret key
const requestBody = '{ "order_id": "1fcc45a2-4def-4953-1bd8-9ff75d9aaa9c"}'
const signature =
crypto
.createHmac('sha256', secretKey)
.update(requestBody)
.digest('base64');Last updated