Menu

Stripe Checkout works. Why is my Next.js app still showing unpaid?
📰

Stripe Checkout works. Why is my Next.js app still showing unpaid?

DEV Community: nextjs·Anthony Loren·11 days ago
#XUc1UIMQ
#devtonextjs#devto#dev#funnel#checkout
Reading 0:00
15s threshold

Originally published on Helpful Mods . I build Helpful Mods, which sells the Funnel service used in this walkthrough.

The customer finishes Checkout, lands on your success page, and clicks the thing they just paid for. Your app sends them straight back to pricing.

Before changing the redirect, follow that purchase into the application. Which user owns it? Has the payment worker processed it? What does the paid page read when the customer arrives?

The interesting part is often between those steps. Stripe can have a completed payment while your app is still waiting for a worker, looking up another customer, or serving an old access result.

Here's how I'd connect a Next.js App Router app to Funnel and Revenue and work through it. Funnel runs beside the app as a Node.js service with PostgreSQL and a background worker.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.