Webhooks
Webhooks allow you to receive real-time notifications about events in your PayVanta account. This guide explains how to set up and use webhooks.
Setting Up Webhooks
- Log in to your PayVanta dashboard
- Navigate to Settings > Webhooks
- Add your webhook URL where you want to receive notifications
- Save the configuration
Webhook Events
Payin Events
payin.initiated- Payment initiatedpayin.success- Payment successfulpayin.failed- Payment failedpayin.refunded- Payment refunded
Payout Events
payout.initiated- Payout initiatedpayout.success- Payout successfulpayout.failed- Payout failedpayout.reversed- Payout reversed
Best Practices
- Always verify webhook signatures
- Respond quickly to webhook calls (within 5 seconds)
- Implement idempotency to handle duplicate events
- Use HTTPS for secure communication
- Keep your webhook endpoints secure
- Monitor webhook delivery and failures
- Implement proper error handling
- Store webhook events for audit purposes
Common Use Cases
- Update order status in your system
- Trigger notifications to customers
- Update inventory or product availability
- Generate receipts or invoices
- Sync payment status with your accounting system
- Update customer records
- Trigger automated workflows
Security
- All webhook calls are made over HTTPS
- Each webhook includes a signature for verification
- IP whitelisting is available for additional security
- Webhook endpoints should be properly secured
Testing
You can test your webhook implementation using the test mode in your dashboard. This allows you to:
- Send test webhook events
- Verify your endpoint is receiving events
- Check your signature verification
- Test error handling
Troubleshooting
Common issues and solutions:
- Webhook not received: Check your server logs and firewall settings
- Signature verification failed: Verify your webhook secret
- Timeout errors: Ensure your endpoint responds quickly
- Duplicate events: Implement idempotency
- SSL/TLS issues: Verify your SSL certificate
Need Help?
If you need help with webhook implementation, contact our support team at support@payvanta.in