Urgent.News

What's breaking now, across thousands of outlets.

Tech

How to email a customer when their Stripe payment fails

When a renewal fails, Stripe fires invoice.payment_failed and starts retrying. Its recommended setting tries up to 8 times in two weeks. Unless you've turned on Stripe's own email, your customer has no idea. It's usually an expired card, not someone leaving, and I think those quiet two weeks are where you lose people who meant to stay. Below is the email I'd send the same day, and the few lines…

When a customer's Stripe payment fails, the system sends an event called `invoice.payment_failed`. While Stripe provides its own email notifications, it's often preferable to handle this event yourself. You can either enable Stripe's email notifications, create your own webhook endpoint, or use a service like Kicklace to send the notification.

To set up your own webhook, go to Stripe's revenue recovery settings, turn on "Send emails when card payments fail", and add a webhook endpoint. Verify each request by checking the signature on the `Stripe-Signature` header. Store the event IDs you've handled, as an event can arrive multiple times.

Kicklace offers a service that integrates with Stripe, listens for `invoice.payment_failed` events, and sends personalized emails to the affected customers. To use Kicklace, connect it to your Stripe account, provide the necessary restricted key, and write your own email template. Kicklace keeps the Stripe secret secure and marks the subscription as past due.

In your email, clearly communicate what happened, how to resolve the issue, and any consequences if the issue remains unresolved. Include a link to your billing page and, if desired, offer assistance. Remember not to blame the customer, and ensure your email aligns with your brand voice.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Meal finder

A Minimalist Recipe Finder Powered by TheMealDB API Sometimes, deciding what to cook is harder than actually cooking. There are so many recipes online, but finding something that matches what you're…

  • Meal Finder simplifies recipe search using TheMealDB API
  • Users input keywords to view instant recipe results
  • Project aims to streamline meal discovery online

Choose an Image Generation Model DALL-E 3 SDXL and Flux for Web App Speed

TL;DR: choose the smallest image-generation system that meets the visual bar for the marketplace workflow, then measure time to a usable result instead of chasing a model leaderboard.

  • Evaluate models with 30-50 prompts covering various asset classes.
  • Record request acceptance and asset usability timestamps.
  • Consider service boundary, deployment control, and observed latency.

xxl-job: 3,350 application matches against 148 page titles

xxl-job: 3,350 application matches against 148 page titles Schedulers are the component that makes a system act without a person.

  • 3,350 application matches found, compared to 148 title matches
  • Discrepancy between application fingerprint and page titles
  • Console port exposure contributes to mismatch

Generating Hero Images, Icons and OG Cards for a Side Project with Nano Banana 2.1

Every side project hits the same wall right before launch: the code works, but the landing page has no images. Here is the workflow I use to generate a consistent asset set with nanobanana21pro.com…

  • Nanobanana21pro.com generates assets for side projects
  • Spec file includes brand colors, style, and asset requirements
  • Hero image sets visual language for project

More from Saturday 24 October →