- Home
- Skills
- DevOps & Cloud
- Next.js 16 + Netlify + Stripe + Resend Paid App
Next.js 16 + Netlify + Stripe + Resend Paid App
Your agent adds Stripe Checkout, a verified webhook, Resend email, signed access links and a protected Netlify cron to a Next.js 16 app. No database. Re-checked every week.
$7
Works with the AI Agents you already use
Next.js 16 + Netlify + Stripe + Resend Paid App
Example session with this skill installed
Add Stripe checkout to my Next.js app on Netlify. I want to sell a $20 PDF guide and send it via Resend after the payment is successful. I don't want to use a database.
- Read your context and instructions
- Compiled the next js 16
I have implemented the database-free checkout flow for your PDF guide. This includes the Stripe Checkout integration, a signature-verified webhook handler, and a Resend email service to deliver the product.
Database-free Payment Implementation
| File | Purpose | Key Feature |
|---|---|---|
lib/stripe.js | Stripe API Wrapper | Uses native fetch for lightweight REST calls |
lib/email.js | Resend Integration | Sends transactional emails with idempotency keys |
app/api/checkout/route.js | Checkout Session | Enables promo codes and one-time payment |
app/api/stripe-webhook/route.js | Order Fulfillment | Verifies signatures on raw request body |
app/api/access/route.js | Secure Delivery | Validates HMAC-signed links for the PDF |
// app/api/stripe-webhook/route.js
import { verifySignature } from '@/lib/sign';
import { sendAccessEmail } from '@/lib/email';
export async function POST(req) {
const payload = await req.text(); // Crucial for signature verification
const signature = req.headers.get('stripe-signature');
try {
const event = verifySignature(payload, signature, process.env.STRIPE_WEBHOOK_SECRET);
if (event.type === 'checkout.session.completed') {
const session = event.data.object;
await sendAccessEmail(session.customer_details.email, session.id);
}
return new Response(JSON.stringify({ received: true }), { status: 200 });
} catch (err) {
return new Response(`Webhook Error: ${err.message}`, { status: 400 });
}
}
Next steps
- Add your
STRIPE_SECRET_KEY,STRIPE_WEBHOOK_SECRET, andRESEND_API_KEYto your Netlify environment variables. - Update the email template in
lib/email.jswith the specific link to your PDF guide. - Run
stripe listen --forward-to localhost:3000/api/stripe-webhookto test the fulfillment locally.
Connects securely to your tools. The creator never sees your data.
About this skill
Most agents can write a Stripe checkout. Getting a small paid product working end to end on Netlify's free plan is where they trip: webhook signatures that fail because the body was parsed, access granted from the success URL, duplicate receipt emails on Stripe retries, Next 16 build errors, cron jobs that never fire on previews.
This skill gives your agent one tested path:
- Stripe Checkout for one-time payments, with Stripe promotion codes
- A webhook handler that verifies signatures on the raw body and fulfils idempotently
- Stripe Customer records used as the store, so there's no database to run (limits written down)
- Resend transactional email from your own domain, with idempotency keys
- HMAC-signed access links and email cookies
- A Netlify scheduled function guarded by a cron secret
- Next.js 16 notes: async request APIs, proxy, Turbopack, and the Cache Components runtime build error
Includes copy-ready route handlers, netlify.toml, an env template, a pitfalls list, a go-live checklist and an offline self-test script. Every API links to the official docs.
Why a subscription: Next.js, Netlify, Stripe and Resend change often. Each week the skill is re-checked against their changelogs and re-validated by building a fresh app, with release notes on every update.
Honest limits: One-time payments only, no subscriptions or seats. It won't create your accounts or deploy for you. The no-database pattern fits small products. Validated by building a fresh Next 16.4.2 app; not yet tested against a live Stripe payment, a live Resend send or a Netlify deploy. Netlify, Stripe and Resend publish free official skills for their own platforms; this one covers how the three fit together in one paid app.
Not for subscriptions or complex relational data. Limited to Stripe metadata constraints (50 keys). Scheduled functions capped at 30s. Requires Next.js 16 and Netlify.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 26 days ago
Requires
Permissions
Allowed Hosts