The AI Mastery Hub logo

Payment and delivery readiness

Ready for Stripe and PayPal tie-in.

The platform has the routes, product data, delivery model, and provider boundaries. The next phase is connecting real Stripe first, then PayPal after the Stripe path is stable.

ready for keys

Stripe Checkout

Hosted Stripe Checkout Session creation and verified webhook processing are implemented. Production still needs test/live Stripe keys, price ID, and webhook secret in the deployment environment.

Required env
  • STRIPE_SECRET_KEY
  • STRIPE_WEBHOOK_SECRET
  • STRIPE_CONFIDENT_PROMPT_VAULT_PRICE_ID

Run Stripe test-mode checkout and webhook QA before accepting live payments.

ready for keys

PayPal Checkout

PayPal is intentionally second. The app has a provider slot and env placeholders, but Stripe should be stabilized first.

Required env
  • PAYPAL_CLIENT_ID
  • PAYPAL_CLIENT_SECRET
  • PAYPAL_WEBHOOK_ID

Add PayPal provider after Stripe purchase and delivery flow is stable.

ready for keys

Database / CRM

Prisma models exist for products, funnels, customers, purchases, entitlements, payment events, and delivery events. Runtime needs DATABASE_URL in each environment.

Required env
  • DATABASE_URL

Confirm Supabase pooled runtime URL in Vercel before preview/live deployment.

ready for keys

Transactional Email

Resend delivery email payloads, access-link generation, webhook-triggered delivery attempts, and manual library access requests are implemented.

Required env
  • RESEND_API_KEY
  • DELIVERY_FROM_EMAIL
  • ACCESS_TOKEN_SECRET

Add a verified sender/domain in Resend, then run a test-mode purchase email delivery QA pass.

ready for keys

Private Downloads

The library, thank-you page, and download route require verified webhook entitlements before exposing short-lived Supabase private storage signed URLs.

Required env
  • ACCESS_TOKEN_SECRET
  • SUPABASE_URL
  • SUPABASE_SERVICE_ROLE_KEY
  • SUPABASE_STORAGE_BUCKET

Create a private Supabase Storage bucket, upload paid PDFs under product slug folders, then run entitlement-gated download QA.