ShipFast
Setup Environment Variables

Setup Environment Variables

Environment variables are required to configure Stripe and Mailgun.

1. Create a .env File

In the root of your project, create a new file named .env.

2. Add Environment Variables

Add the following variables to your .env file. These are test keys, when pushing live, please replace with your own keys.


# STRIPE PRIVATE CONFIG (MANDATORY)
STRIPE_SECRET_KEY=sk_test_51NzdYFJ68NsSyttpkJS8MNOUsoxsIIjwKopLWCA3VLZuGyyCQfttWUeaj1z0JZxdst7dPjkitYvd1AF4Yxj8bXZl00vg6YvAo6
STRIPE_WEBHOOK_SECRET=whsec_E5PBjYCCcznA2N3iv1eJJLQsLqzZHCNC
  
# STRIPE PUBLIC CONFIGURATION (MANDATORY)
STRIPE_PUBLISHABLE_KEY=pk_test_51NzdYFJ68NsSyttpHI8yEzm7V9VGgjY46E1epFk2BWpFRsVAZy2vvUfyZwvGDLNe7po1oZiN431VgGrZMsnO4Yfy00UDqaKwE9
  
# STRIPE PRICING PLANS (MANDATORY)
FREE_PLAN=price_1Q3AolJ68NsSyttpXcgcGC3l # ID for Free Plan in development
PLAN_1=price_1Q39qcJ68NsSyttpjfQslt4G  # ID for Pro Plan in development
PLAN_2=price_1Q39rSJ68NsSyttpuuzpfvX0  # ID for Business Plan in development
  
# MAILGUN CONFIGURATION (OPTIONAL)
MAILGUN_API_KEY=<your_mailgun_api_key>
MAILGUN_DOMAIN=<your_mailgun_domain>
SUPPORT_EMAIL=<your_support_email>

Replace the placeholder values (e.g., <your_mailgun_api_key>). The next steps will guide you on how to set up Stripe and Mailgun.