This guide explains how to configure Stripe webhooks to keep your application in sync with subscription changes.
Configure Webhook Endpoint
Prerequisites
- Completed Stipe API Key Setup
- Access to Stripe Dashboard
Step-by-Step Configuration
- Navigate to Stripe Dashboard → Developers → Webhooks
- Click "Add endpoint"
- Set API version to
2024-11-20.acacia - Configure the webhook URL:
https://validator.iaptic.com/v3/webhook/stripe?appName=[APP_NAME]&apiKey=[PUBLIC_KEY]
Required Events
Select the events to listen to:
Subscriptions (if your app has subscriptions):
customer.subscription.createdcustomer.subscription.updatedcustomer.subscription.deletedcustomer.subscription.resumedcustomer.subscription.paused
Payment intents (if your app has consumable or non-consumable purchases):
payment_intent.succeededpayment_intent.canceledrefund.createdrefund.updated
Products and prices:
product.createdproduct.deletedproduct.updatedprice.updatedprice.deletedprice.created
Configure iaptic
- Copy the webhook signing secret (
whsec_...) - Go to iaptic Dashboard → Settings
- Enter the webhook secret:
Stripe Webhook Secret: whsec_...
Test the Configuration
- Make a test payment
- Check Stripe Webhook logs.
- Check iaptic logs for the event.
