Payments Webhook
Webhook Integration
The Webhook integration is available to streamline the process of sending personalized emails or receipts to your users every time they make an NFT purchase. This feature can be utilized if the platform wants to handle invoicing, for collecting usage data or for any other usage.
Provide a webhook URL
Click on the Payout tab in the left pane of the Developer Console.
In the Tokens tab, locate the Webhook integration section.
Enter the URL where you want to receive the transaction details. This URL should be capable of handling incoming HTTP POST requests with
'Content-Type': 'application/x-www-form-urlencoded'
The parameters will get sent to the webhook in the body of the POST
Generate authentication token
Click "Save" to save your Webhook URL.
A unique authentication token will be generated for your Webhook integration. This token is essential for authenticating your Webhook requests and should be kept private.
Handle Incoming Webhook Requests
Your Webhook URL will receive
https POST
requests with transaction details every time an NFT purchase is made.Implement the necessary logic on your server to handle incoming requests. Validate the authenticity of the request using the authentication token provided.
The Webhook Payload
Security considerations
The webhook should be protected against unauthorized communication using:
Authentication token - Generated by the dev console
Origin - Will be always tweed backend server
Last updated