Integration
Stripe Webhooks
Receive payment events, subscription updates, and invoice notifications from Stripe. Automatic signature verification using Stripe's signing secret.
Popular Stripe Events
payment_intent.succeeded
Payment completed successfully
payment_intent.failed
Payment attempt failed
customer.subscription.created
New subscription started
customer.subscription.deleted
Subscription cancelled
invoice.paid
Invoice payment received
checkout.session.completed
Checkout session finished
All 100+ Stripe webhook events are supported.
How to Set Up Stripe Webhooks
Create a Source in Hookbase
Create a new webhook source and select Stripe as the provider. Copy your unique webhook endpoint URL.
Add Endpoint in Stripe Dashboard
Go to Developers → Webhooks in your Stripe Dashboard. Click 'Add endpoint' and paste your Hookbase URL.
Copy the Signing Secret
After creating the endpoint, Stripe shows a signing secret (whsec_...). Copy this and add it to your Hookbase source.
Select Events & Start Receiving
Choose which Stripe events to receive. Hookbase verifies every webhook and delivers to your endpoints.
Common Stripe Webhook Use Cases
Payment Processing
Handle successful payments, failed charges, and refunds. Update order status and send confirmation emails automatically.
payment_intent.succeededSubscription Management
Track subscription lifecycle events. Handle upgrades, downgrades, cancellations, and trial conversions.
customer.subscription.updatedInvoice Automation
Process invoice events for billing automation. Track payments, send reminders for upcoming invoices, handle failures.
invoice.payment_succeededDispute Handling
Get notified immediately when disputes are opened. Respond quickly with evidence to protect your revenue.
charge.dispute.createdExample: Transform Payment Events
// Transform to extract key payment info
module.exports = (payload) => {
const { type, data } = payload;
const obj = data.object;
if (type === 'payment_intent.succeeded') {
return {
event: 'payment_completed',
paymentId: obj.id,
amount: obj.amount / 100, // Convert cents to dollars
currency: obj.currency.toUpperCase(),
customerId: obj.customer,
metadata: obj.metadata,
timestamp: new Date().toISOString()
};
}
return payload; // Pass through other events
};Test Stripe Webhooks Locally
Use Hookbase tunnels to receive Stripe webhooks on your local development machine. No need for the Stripe CLI.
$ hookbase tunnel 3000 Starting tunnel to localhost:3000... Connected! Your public URL: https://api.hookbase.app/t/abc123 Use this URL in your Stripe Dashboard for local testing.
Start Receiving Stripe Webhooks
Set up in under 2 minutes. Free tier includes 200 events per month.
Get Started Free