Webhook Configuration

Set up webhooks to receive real-time payment events from Stripe and PayPal

Webhook Setup Required

Configure these webhook URLs in your Stripe and PayPal dashboards to receive real-time payment notifications. This ensures your orders are automatically updated when payments are received.

S
Stripe Webhook
Configure in Stripe Dashboard → Developers → Webhooks
payment_intent.succeeded
payment_intent.payment_failed
charge.refunded

After adding the webhook URL in Stripe Dashboard, you'll receive a signing secret. Add it to your environment variables as STRIPE_WEBHOOK_SECRET.

P
PayPal Webhook
Configure in PayPal Dashboard → Apps & Credentials → Webhooks
CHECKOUT.ORDER.COMPLETED
PAYMENT.CAPTURE.COMPLETED
PAYMENT.CAPTURE.REFUNDED

After adding the webhook URL in PayPal Dashboard, you'll receive a webhook ID. Add it to your environment variables as PAYPAL_WEBHOOK_ID.

Setup Instructions

1Stripe Setup

  1. Go to Stripe Dashboard → Developers → Webhooks
  2. Click "Add endpoint"
  3. Paste the Stripe webhook URL above
  4. Select the events listed above
  5. Copy the signing secret and add it to your environment as STRIPE_WEBHOOK_SECRET

2PayPal Setup

  1. Go to PayPal Dashboard → Apps & Credentials
  2. Select Sandbox or Live environment
  3. Click "Webhooks" in the left menu
  4. Click "Create Webhook"
  5. Paste the PayPal webhook URL above
  6. Select the events listed above
  7. Copy the webhook ID and add it to your environment as PAYPAL_WEBHOOK_ID

✓ Once configured, your payment events will be automatically synced to your database and customers will receive order confirmation emails.