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.…