Skip to main content
Webhooks allow your application to receive real-time HTTP POST notifications when events occur in your CreptaPay account. For example, when a customer successfully pays an invoice, CreptaPay dispatches a webhook event to your server.

Event payload

All webhook events sent by CreptaPay share a common wrapper structure:

Supported events

CreptaPay dispatches notifications for the following events:

payment.created

This event is dispatched immediately when a new payment link or wallet address is successfully initialized.

payment.paid

This event is dispatched as soon as the transaction payment is successfully detected and confirmed on the blockchain network. The payload includes the transactionHash property.

Secure your webhooks

To ensure that incoming HTTP requests were actually sent by CreptaPay and not tampered with, you must verify the signature sent in the X-CreptaPay-Signature header of each request. For step-by-step instructions and code examples on how to do this, see Verify Signature.