Automate testimonial requests after a Stripe payment
You can ask every new paying customer for a testimonial without remembering to. This guide shows the do-it-yourself route with a Stripe webhook and an email, and the traps in it. Stripe facts were checked on docs.stripe.com on 29 Nov 2026 and each links to its source.
Our product is not live yet. Gladsay is being built to do the steps below for you; today there is only a waitlist. Nothing here is a feature you can use. We are independent and not affiliated with or endorsed by Stripe. This is general information, not legal advice.
The idea in one minute
- A customer pays you through Stripe.
- Stripe sends an event to a webhook endpoint you run.
- Your code decides whether this really is a new paying customer.
- After a delay you choose, your code emails them one short request with a link where they can write a testimonial.
Only step 2 is Stripe-specific. Everything else (the delay, the wording, the consent, the email) is your own design, and most of the mistakes happen there.
Step 1: pick the right Stripe event
For payments through Checkout or Payment Links, Stripe's fulfillment guide says: "When someone pays you, it creates a checkout.session.completed event" (Fulfill orders, checked 29 Nov 2026). Payment Links use Checkout, so the same applies to them.
Do not treat every completed session as a paid customer. The Checkout Session has a payment_status that is one of paid, unpaid or no_payment_required (Checkout Session object, checked 29 Nov 2026):
paid: "The payment funds are available in your account. For subscriptions with a free trial, this indicates that the $0 trial invoice has been successfully processed." So a free trial can show aspaidwith nothing actually charged.unpaid: "The payment funds are not yet available in your account."no_payment_required: the session is insetupmode, "or the Session uses a billing cycle anchor with no proration and payment will be collected at the anchor date".
Delayed payment methods. Methods such as ACH direct debit are not instant. Stripe says delayed methods "generate a checkout.session.async_payment_succeeded event when payment succeeds later", and suggests also handling checkout.session.async_payment_failed (Fulfill orders). So listen for both checkout.session.completed and checkout.session.async_payment_succeeded, and run the same check on each.
Our rule of thumb (our design choice, not Stripe's advice): only schedule a request when payment_status is paid and amount_total is above zero, so free trials and fully discounted sessions do not trigger one. Stripe's own sample only skips unpaid; the extra check is ours.
Subscriptions and invoice.paid
Stripe's subscription webhook guide describes invoice.paid as "Sent when the invoice is successfully paid", and says that after receiving it you should retrieve the subscription and confirm its status is active (Using webhooks with subscriptions, checked 29 Nov 2026).
An invoice is created for every renewal, so invoice.paid will arrive every billing period. If you use it, ask only once per customer (store that you already asked). Many businesses can skip it and use checkout.session.completed, which fires once per checkout. Pick one trigger and stay with it.
Step 2: build the webhook endpoint safely
These points come from Stripe's webhook documentation (Receive Stripe events in your webhook endpoint, checked 29 Nov 2026):
- Register the endpoint in the Webhooks tab in Workbench, choose only the event types you need, and copy the signing secret that starts with
whsec_. The URL must be a publicly accessible HTTPS URL. - Verify every request. Check the
Stripe-Signatureheader against the raw request body using your signing secret. Stripe warns that any manipulation of the raw body makes verification fail. Never put the secret in your code repository. - Reply with a 2xx quickly, before any slow work such as sending email. Put the real work on a queue.
- Expect duplicates. "Webhook endpoints might occasionally receive the same event more than once." Log the event IDs you processed; in some cases two separate Event objects exist, so also check the ID of
data.objecttogether withevent.type. - Do not rely on order. "Stripe doesn't guarantee the delivery of events in the order that they're generated." Do not use
createdto decide order. - Retries. In live mode Stripe retries failed deliveries for up to three days with exponential backoff. In a sandbox it retries three times over a few hours.
- Test first. Use a sandbox or the Stripe CLI (
stripe listenforwards events to your local server;stripe triggersends test events) before you go live. Your live endpoint has a different signing secret from your test one.
Step 3: decide whether to ask
Before you schedule an email, re-check at send time, not only at payment time:
- Has the payment been refunded or disputed? Stripe sends
charge.refundedandcharge.dispute.createdfor these (subscription webhooks). Asking a customer who just disputed a charge for a testimonial is a bad idea. - Have you asked this person before? Keep a record per customer and never send twice for the same payment.
- Did they opt out? Keep a do-not-email list and honour it.
- Is it the right moment? Stripe says nothing about timing; it is your call. Our own suggested default is about two weeks after payment, so the customer has had time to get a result. See how to ask customers for testimonials.
Step 4: send the email
Use your own email provider. Send from a domain you control, with a real reply address, one clear question, and a one-click way to opt out. Do not offer a reward for a positive review, and do not pressure anyone. Email law differs by country; check the rules that apply to you. Our free request email generator drafts wording you can edit.
Subject: How is it going with Acme Widgets?
Hi Sam, thanks for signing up two weeks ago. If it has been useful, would you share a sentence or two about your experience? You can reply to this email or use this link: [link]. No problem if not. To stop these emails, use the unsubscribe link below.
A minimal outline (pseudocode)
This is a plan, not code to copy. We have not published a tested implementation.
on POST /webhook: read the raw body and the Stripe-Signature header verify signature with the signing secret (fail: reply 400) if event.id already stored: reply 200 (duplicate) if event.type is not one of the chosen types: reply 200 store event.id and put the session id on a queue reply 200 in the queue worker (later): fetch the Checkout Session from the Stripe API skip unless payment_status is "paid" and amount_total > 0 skip if this customer was already asked or opted out schedule one email for (paid time + your delay) at send time: skip if refunded or disputed; otherwise send, record it
Fetching the session again from the API, rather than trusting the event payload alone, follows Stripe's own advice that your handler "might be called multiple times, possibly concurrently, for the same Checkout Session" (Fulfill orders).
What Gladsay is planned to do
Gladsay is being built to cover steps 1 to 4 for you: you add a webhook in your own Stripe account, and each new paying customer gets one request and a single reminder after a delay you choose, with one-click unsubscribe. We never write or edit testimonials, and nothing goes public until you approve it and the author consents. This is a plan for a product in development. It has not launched, and plans may change.
If you have the time, the DIY route above works and costs little. A tool is worth considering when you do not want to maintain the webhook, retries, opt-outs and email delivery yourself.
Join the waitlist