Payments

In this step, we'll set up payments.

Stripe

Neorepo uses Stripe to process payments. Stripe is a technology company that builds economic infrastructure for the internet. Businesses of every size—from new startups to public companies—use Stripe’s software and APIs to accept payments, send payouts, and manage their businesses online.

Stripe Configuration

Neorepo uses Stripe Checkout to process payments. Stripe Checkout is a pre-built payment page that you can use to collect payments from your customers. It's designed to be easy to use and customize.

Add your environment variables

  1. Open the Vercel project you created in the previous step
  2. Click the "Environment Variables" tab
  3. Add the following environment variables (replace example values with your own)):
STRIPE_SECRET_KEY=somevalue
STRIPE_WEBHOOK_SECRET=somevalue

Add your Stripe webhook

  1. Open the Stripe dashboard
  2. Click the "Developers" tab
  3. Click the "Webhooks" tab
  4. Click the "Add endpoint" button
  5. Enter the URL of the local or deployed version of your app

Sync your Stripe webhook

  1. Open your local or deployed version of Neorepo
  2. Click the "Sync Stripe" button. THis will sync your Stripe webhook with your local or deployed version of Neorepo so that you can query payments directly from your database as needed

Products and Pricing

Neorepo has each product associated with a monthly and annual pricing. You can use this to manage your products and pricing.

Each product has a monthly and annual price. You can use this to manage your products and pricing.

If your webhooks are set up correctly, you should be able to query payments directly from your database as needed when you update your products or pricing.