Stay synchronized with the blockchain. Receive instant, cryptographically-signed HTTP callbacks whenever a payment is confirmed.
Crypto payment webhooks are the backbone of a reliable integration. Instead of constantly polling an API, Smart CloudPay actively pushes real-time HTTP alerts to your server the moment a transaction is detected and confirmed.
Security is critical for payment webhooks. Every payload sent by Smart CloudPay includes a cryptographic signature in the header, allowing you to mathematically verify that the webhook came from our servers.
If your server experiences downtime, our webhook engine automatically employs exponential backoff retry logic, ensuring you never miss a payment confirmation.
Subscribe to various events such as `invoice.created`, `payment.unconfirmed`, `payment.confirmed`, and `invoice.expired` to drive your application’s state machine seamlessly.
Always verify the HMAC signature to ensure the webhook came from us.
const crypto = require('crypto');
function verifyWebhook(payload, signature, secretKey) {
const hash = crypto.createHmac('sha256', secretKey)
.update(payload)
.digest('hex');
return hash === signature;
}