EdenPay Payment Webhooks
Receive real-time notifications when payment events occur in your EdenPay integration.
What are Webhooks?โ
Webhooks enable BlockEden.xyz to push real-time event notifications to your server when important payment events occur. Instead of repeatedly polling our API to check for status changes, your server receives HTTP POST requests containing structured event data the moment something happens.
Why Use Webhooks?โ
- Real-time notifications: Get instant updates when payments are confirmed, failed, or refunded
- Reduced API calls: Eliminate the need for polling, saving compute units and improving efficiency
- Reliable delivery: Automatic retries with exponential backoff ensure events reach you
- Secure: HMAC-SHA256 signature verification protects against unauthorized requests
- Scalable: Handle thousands of events without overwhelming your infrastructure
How Webhooks Workโ
- You create an endpoint: Set up a public HTTPS URL on your server to receive webhook events
- You register the endpoint: Add your URL in the BlockEden dashboard and select which events to receive
- Events occur: When a payment is confirmed, fails, or changes status, we create an event
- We send the event: BlockEden sends an HTTP POST request to your endpoint with the event data
- You process the event: Your server validates the signature, processes the event, and returns a 200 response
- We retry if needed: If your endpoint doesn't respond, we automatically retry with exponential backoff
Common Use Casesโ
E-commerce Checkoutโ
Automatically fulfill orders when payment is confirmed, update order status when payments fail, and process refunds.
Subscription Servicesโ
Activate user accounts when initial payment is confirmed, handle failed recurring payments, and manage subscription lifecycle.
Digital Content Deliveryโ
Grant immediate access to purchased content, revoke access for failed payments, and track payment analytics.
Multi-chain Payment Processingโ
Handle payments across multiple blockchain networks with a unified webhook interface.
Event Typesโ
EdenPay webhooks support the following event types:
payment.created
- A new payment has been initiatedpayment.pending
- Payment transaction has been broadcast to the blockchainpayment.confirmed
- Payment has been confirmed on-chain (recommended for fulfillment)payment.failed
- Payment has failed or expiredpayment.refunded
- Payment has been refunded to the customercheckout.session.created
- A new checkout session has been createdcheckout.session.completed
- Checkout session completed successfullycheckout.session.expired
- Checkout session has expired
Securityโ
All webhook requests include an x-eden-signature
header containing an HMAC-SHA256 signature. Always verify this signature before processing events to ensure the request came from BlockEden.
Getting Startedโ
Ready to integrate webhooks? Follow our Quick Start Guide to set up your first webhook endpoint in under 5 minutes.
Documentation Structureโ
- Quick Start Guide - Set up your first webhook in 5 minutes
- Event Reference - Complete list of event types and payloads
- Signature Verification - Security and signature validation
- Troubleshooting - Common issues and solutions
Need Help?โ
- Dashboard: View delivery attempts, replay failed events, and test webhooks
- Forum: https://blockeden.xyz/forum
- Support: support@blockeden.xyz
- Discord: https://discord.gg/eWZvE4RSBw