← Back to blog

How to Deliver Digital Downloads After a Stripe Payment

November 23, 2026
How to Deliver Digital Downloads After a Stripe Payment

Stripe moves the money, but it does not host your file or decide who gets it. Delivery is your job, and you have three ways to do it: send buyers to a private download page, email the link automatically, or issue a verified, expiring link from a server. If you would rather not wire these pieces together yourself, you can sell from a storefront that already connects Stripe payments to your products. That is how Genesize works: you create the product, publish it to a storefront, accept payments through Stripe and follow up by email in one workspace. In Genesize, Growth Agent, CRM and marketing email require Scale or Business. Customer marketing sending requires the first eligible successful paid subscription payment and appropriate permission; receipts and buyer-access messages are separate.

This guide walks through each route, what it takes, where it breaks, and how to test it before your first real sale.

Genesize
genesize.io
Deliver Downloads Without the Plumbing
Genesize brings digital product creation, Stripe-connected storefronts, and sales tracking together, so you can focus on creating.
Visit

TL;DR

  • Stripe confirms payment and sends receipts. Your site, or the platform you sell on, has to hand over the file.

  • The simplest setup is a Payment Link that redirects to a private download page. It works, but anyone who has the URL can download.

  • For anything beyond a handful of sales, trigger delivery from Stripe's checkout.session.completed event as well as the redirect, because a buyer can pay and never reach your thank-you page.

  • Test with Stripe's test cards, and keep a routine for the "I paid and got nothing" email.

  • Selling from a storefront connected to Stripe, as Genesize does, takes the plumbing off your plate.

Table of Contents

What Stripe does and what it leaves to you

When a customer pays, Stripe records the payment, sends a receipt if you turn receipts on, and fires an event. Everything after that is yours. A developer guide on Stripe delivery puts it plainly: Stripe is a payment processor, it does not host files or define "access", and it gives you three building blocks to work with.

  1. A post-payment redirect. After paying, the buyer lands on a URL you choose.

  2. The Checkout Session ID. Stripe can insert it into that URL with the {CHECKOUT_SESSION_ID} placeholder, so your page knows which payment it is looking at.

  3. The checkout.session.completed event. Stripe sends this to a webhook (a web address on your side that Stripe calls when something happens) or to an automation tool.

Stripe's own order fulfillment documentation says fulfillment can be done manually from the Dashboard or automatically, and recommends automation for most situations. It also warns that you cannot rely only on the landing page after checkout, because a customer can pay and then lose their connection before the page loads. That one warning shapes every method below: use the redirect for instant access, and a second channel, the event, as the safety net.

The shortest path: sell from a storefront already connected to Stripe

Every method below is a piece you assemble: a hosting spot for the file, a page, a trigger, an email, a record of who already got what. For a creator selling an ebook, a course or a resource pack, that is a lot of infrastructure around one product.

Genesize is built to remove that assembly. You shape the product with AI-assisted creation, publish it to a simple storefront, accept payments through Stripe, and run email follow-ups and customer records from the same workspace. Product, storefront, payments and follow-up sit together, so you are not stitching a payment tool to a file host to an email service.

There is a free trial, and paid plans are listed on the Genesize pricing page: Starter is $34 per month, Scale is $58 per month and Business is $128 per month. Yearly billing is $285.60, $487.20 and $1,075.20 respectively.

If you want to understand the mechanics anyway, or you are building on your own site, the rest of this article covers them in full.

Method 1: Redirect to a private download page (no code)

This is the starting point for a first product, and it takes about twenty minutes.

  1. Create a private download page. Use a hard-to-guess address, for example your domain plus /access/ and a long random string. Set the page to noindex so search engines skip it, and add a no-referrer policy so the address is not passed along when someone clicks away.

  2. Put the download button on it. Link to the file wherever it lives. Keep the file name clean and tell the buyer what they are getting.

  3. Set the redirect in Stripe. Per Stripe's Payment Link post-payment settings, you can show a custom confirmation message or redirect to a URL of your choice under "After the payment". Paste your private page address there.

  4. Turn on automatic email receipts in your Stripe settings so every buyer has proof of payment.

Where it goes wrong. Anyone who has that URL can download the file. A buyer can forward it, and a link that leaks stays live forever. The same guide notes a pragmatic view: for a $10 to $30 template or printable, many sellers accept that risk at the start and spend their time finding buyers instead. If your product is higher value, or sharing starts costing sales, move to Method 3.

The second weakness is that the buyer must reach the page. If their browser closes right after paying, they have a receipt and no file. That is why Method 2 exists.

Email is your backup channel. A buyer who loses the thank-you page still has a message in their inbox.

There are two ways to trigger it.

  • Through an automation tool. Stripe's documentation points to partners such as Zapier for automating fulfillment. You set the trigger to a completed checkout, read the buyer's email address, and send the link.

  • Through a small webhook endpoint. Your server receives checkout.session.completed, reads the customer email from the session, and sends the message.

The webhook route has four rules that matter. A worked tutorial on a one-time download flow lists them: read the raw request body (parsing it as JSON first breaks the signature check), verify each event with Stripe's signing secret, handle both checkout.session.completed and checkout.session.async_payment_succeeded, and make fulfillment idempotent, meaning running it twice does no harm.

The second event matters because some payment methods settle later. Stripe's documentation says delayed methods produce the async success event when the money arrives, so a handler that only listens for the first event can miss those buyers or deliver before the payment clears.

Speed matters too. According to Stripe's docs, when your endpoint listens for checkout.session.completed and a success URL is set, hosted Checkout waits up to 10 seconds for your server to respond before redirecting the customer. Respond fast, and do slow work such as sending email in the background.

If you take payments by invoice rather than checkout, the same principle applies: the link must reach the payer when payment is confirmed. This explainer on payment links in invoices shows how that flow looks from the freelancer's side.

This is the secure version, and it is what you want for higher-priced products such as courses, template libraries or anything sold repeatedly.

The flow, following Stripe's fulfillment guide:

  1. Set the redirect to a landing page that carries the session ID. In a Payment Link, open the After Payment tab, choose not to show the confirmation page, and paste a URL containing {CHECKOUT_SESSION_ID}. Through the API the setting is after_completion[type]=redirect.

  2. Create a fulfillment function. It takes the session ID, retrieves the session from Stripe with line items expanded, checks that payment_status shows the payment is paid, delivers what was bought, and records that it did.

  3. Call that function from two places. Run it when the buyer lands on the page, after verifying the payment and product entitlement, and run it from your webhook for checkout.session.completed, as a durable second path for payments whose redirect is never visited.

  4. Return a short-lived link, not the raw file. Keep files in private storage and generate a signed URL on your server only after payment is verified. Keep your Stripe secret key on the server, never in page JavaScript.

Re-fetching the session from Stripe rather than trusting the browser gives you fresh state, and the expanded line items let you deliver exactly what was purchased, including multi-item carts and bundles.

Where it goes wrong. Most failures here come from the same few places: parsing the webhook body before verifying the signature, forgetting the async event, delivering twice when Stripe retries, or building the page so that the session ID alone is enough to download without checking it belongs to your product. Each one is fixable, but each is also a reason many creators choose not to build this at all.

Test before the first real sale

Never find out your delivery is broken from a customer. Stripe's documentation describes the test routine for webhooks:

  • Run the Stripe CLI command stripe listen --forward-to localhost:4242/webhook to forward events to your machine, and add the signing secret it prints to your handler.

  • Complete a test checkout with card 4242 4242 4242 4242, any future expiry, any three-digit CVC and postal code 90210.

  • Confirm that checkout.session.completed arrives and that your logs show the expected result.

Then run the unhappy paths. Stripe publishes other test cards that trigger bank authentication or declines, so you can see what your page shows when payment fails. Finally, check the email: does it arrive, does the link work from a phone, and does it still work for a second click if you allow one?

Test concurrent repeats of the same event as well as sequential retries. Use a unique order/session key and an atomic claim in a durable outbox before dispatching delivery. Where available, reuse the same provider idempotency key for retries. A marker written only after sending can still race or duplicate an email after an ambiguous provider response. Preserve unknown outcomes for reconciliation rather than declaring a send failed or retrying blindly. See Stripe’s fulfillment guidance.

Buyer checking for a digital download email

When a buyer says they paid and got nothing

It will happen eventually. Work through it in this order.

  1. Find the payment in your Stripe Dashboard. Confirm it succeeded, and note whether the method was a delayed one.

  2. Check the event. In the Dashboard's webhook view, see whether checkout.session.completed was delivered to your endpoint and what your server answered. A non-success response means Stripe treats the delivery as failed.

  3. Check the email. Look at spam folders and at whether the address on the session was mistyped.

  4. Resend manually. Stripe's docs allow manual fulfillment from the Dashboard, and for a single customer that is fine.

  5. Fix the cause so the next buyer is not affected.

Do not treat Stripe's automatic retries as a complete safety net. One analysis of webhook retries argues that outages and disabled endpoints can still make a paid event slip through, and recommends a second channel: a scheduled job that lists recent events or compares recent successful payments against fulfilled orders. Even a weekly manual comparison catches most silent failures before the customer emails you.

Protecting the file after delivery

The more you charge, the more the download link deserves care.

  • Never link straight to the file. Send buyers through a server check that verifies the purchase and then issues a temporary link. A write-up on expiring links describes this as a gatekeeper rather than handing over a key to the vault, with a pre-signed storage URL that expires after one hour.

  • Pick sensible limits. The open-source LinkVault project defaults to links that expire after 7 days and allow 5 downloads per order, both configurable. Pick limits that fit your file size and your buyers' patience, and let them request a fresh link without writing to you.

  • Create purchase records from the webhook, not the redirect. The redirect can be visited by anyone who has the URL. The webhook is Stripe telling your server that money moved.

  • Plan for refunds and chargebacks. Decide in advance whether a refund removes access, and say in your terms that access may be suspended if a payment is reversed.

  • Be honest about limits. An expiring link cannot recall a file already saved. Describe the protection as a deterrent, not a guarantee.

If you store client files or sell sensitive material, this overview of secure file sharing for business covers the access habits that apply.

For related setups, see how to sell digital downloads on your own website, sell a PDF online and deliver it automatically, or sell digital products without a website. If your files carry usage rules, personal versus commercial licenses are worth settling before you publish.

Our view on delivery

Most creators we talk about this with start in the wrong place. They ask which webhook to write, when the real question is how much of their week they want to spend on infrastructure instead of the product itself.

Delivery is a chain: a payment, a confirmation, a file, a message, a record. Each link is simple on its own. Together they are a small system you now own, with retries, edge cases and a support inbox attached.

That is why we built Genesize around one workspace. You create the ebook, course or resource pack with AI guidance, publish it to a storefront, take payments through Stripe, and follow up with buyers by email, without paying for and connecting five separate tools. Your time goes into your expertise and your audience.

If you do build your own flow, build it the way the methods above describe: confirm payment on the server, deliver from two channels, make it safe to run twice. And if you would rather skip it, that is exactly what we made the platform for.

Andrew

Start selling without building the plumbing

If your goal is to get a product in front of buyers and paid for, Genesize gives you creation, a storefront, Stripe payments, a CRM and email follow-ups in a single place. Start with the free trial, then choose the plan that fits: Starter at $34 per month, Scale at $58 per month or Business at $128 per month, with yearly billing available.

Current Genesize plans and selling fees

USD subscription prices and before-tax sales commissions, checked December 1, 2026:

PlanMonthly subscriptionAnnual subscription, paid upfrontDirect sales / Marketplace
Free to Sell$0No subscription10% / 30%
Starter$34$285.606.45% / 20%
Scale$58$487.203.45% / 10%
Business$128$1,075.201.45% / 5%

Stripe processing is separate. The Marketplace rate applies when the buyer comes through Marketplace, including paid memberships. Free to Sell supports eligible finished uploads, subject to file and storage limits; it does not include AI creation, CRM or marketing email. All paid plans include communities and memberships. Growth Agent, CRM and marketing email require Scale or Business; customer marketing sending begins after the first eligible successful paid subscription payment. Purchase receipts and access messages are separate transactional functions. Compare current plan details and the finished-product selling route.

Genesize

See the plans on the Genesize pricing page, or read how email marketing for digital products turns a first sale into repeat customers.

FAQ

Does Stripe send the digital file to the customer?

No. Stripe confirms the payment and can email a receipt, but it does not host or send your file. You deliver it through a redirect page, an email triggered by the payment event, or a storefront that handles delivery for you.

Is a redirect page enough, or do I need a webhook?

For a first low-priced product, a redirect to a private page is a workable start. As sales grow, add the webhook as well, because Stripe's documentation warns that a buyer can pay and lose their connection before the landing page loads. The event covers those buyers.

Use a verified link that expires, issued by your server only after payment is confirmed, and limit the number of downloads per order. This discourages casual sharing, though no link can recall a file someone has already saved.

How do I test the flow without charging anyone?

Use Stripe's test mode. Forward events to your machine with the Stripe CLI and pay with card 4242 4242 4242 4242, any future expiry, any three-digit CVC and postal code 90210. Confirm the event arrives, the email sends and the link opens.

Sources