PaymentAlerts

Keep customers informed about payments, prevent churn from failed charges, and reduce support tickets.

Payment confirmations

Instant receipts via email when payments succeed. Professional and automatic.

Failed payment recovery

Alert customers immediately when payments fail. SMS for urgency, email for details.

Upcoming renewal reminders

Notify before charges to reduce surprise cancellations and chargebacks.

Multi-channel urgency

Email for routine receipts, SMS for failed payments that need immediate action.

Invoice delivery

Send invoices automatically with PDF attachments or links.

Dunning sequences

Automated follow-ups for failed payments to recover revenue.

How it works

typescript
// Stripe webhook handler
app.post('/webhooks/stripe', async (req, res) => {
  const event = stripe.webhooks.constructEvent(req.body, sig, secret);

  if (event.type === 'invoice.payment_succeeded') {
    await sendivent.send({
      event: 'payment.succeeded',
      user: { email: event.data.object.customer_email },
      payload: {
        amount: formatCurrency(event.data.object.amount_paid),
        invoiceUrl: event.data.object.hosted_invoice_url,
        nextBillingDate: event.data.object.next_payment_attempt
      }
    });
  }

  if (event.type === 'invoice.payment_failed') {
    await sendivent.send({
      event: 'payment.failed',
      user: {
        email: event.data.object.customer_email,
        phone: customer.phone // SMS for urgency
      },
      payload: {
        amount: formatCurrency(event.data.object.amount_due),
        updatePaymentUrl: 'https://app.example.com/billing',
        retryDate: event.data.object.next_payment_attempt
      }
    });
  }
});

Implementation steps

1

Connect to your payment processor

Trigger Sendivent events from Stripe webhooks, or your own payment system.

2

Configure notification rules

Set which payment events trigger which channels — SMS for failures, email for receipts.

3

Recover failed payments

Automated sequences remind customers to update payment methods.

Why payment notifications matter

Payment notifications directly impact revenue:

  • Failed payment alerts recover churned customers — every day of delay loses money
  • Renewal reminders reduce involuntary churn and chargebacks
  • Professional receipts build trust and reduce "I didn't authorize this" disputes

The complete payment notification flow

  1. payment.succeeded — receipt with amount and invoice link
  2. payment.failed — urgent alert with update payment CTA
  3. payment.retry_scheduled — reminder before automatic retry
  4. payment.method_expiring — proactive card expiration warning
  5. subscription.renewed — confirmation of subscription renewal
  6. subscription.cancelled — confirmation and win-back opportunity

Multi-channel strategy

  • Email: Receipts, invoices, routine confirmations
  • SMS: Failed payments, expiring cards, urgent action needed
  • Slack: Internal alerts for high-value failures or disputes

With Sendivent, you configure this once and we route intelligently.

Frequently asked questions

How do I integrate with Stripe webhooks?

Listen for Stripe webhook events like invoice.payment_succeeded and invoice.payment_failed, then trigger the corresponding Sendivent event with payment details.

Should I use SMS for failed payment alerts?

Yes, SMS is highly effective for failed payments. The urgency of SMS increases response rates and helps recover revenue faster than email alone.

Can I set up automated dunning sequences?

Yes, you can trigger a sequence of events for failed payments. Start with an immediate alert, follow up after a few days, and escalate to SMS if needed.

How do I include invoice PDFs in payment receipts?

Include the invoice URL in your payload. Most payment processors like Stripe provide hosted invoice URLs that you can link to in your email template.

Ready to get started?

Start sending payment alerts in minutes with Sendivent's simple API.