ZapStack

Payments

Setup your pricing plans

We support both subscription and one-time payment for Stripe.

  1. Create Stripe account.

  2. Open Stripe dashboard and enable Test mode:

  1. Create your Stripe products here then add the product ids into /configs/pricing.tsx in StripePricingPlans list.

  2. Copy API secret key in here into .env:

STRIPE_SECRET_KEY=
  1. Setup webhook for local development:
  • Follow this guide to download and run Stripe CLI in your local machine.

  • After running Stripe CLI, it will automatically generate the webhook secret, copy and paste into .env:

STRIPE_WEBHOOK_SECRET=
  1. Active Customer billing portal for test mode.

We only support month and year subscription interval for now

On this page

No Headings