MoveFast supports three payment providers: Stripe, Polar, and Dodo Payments. Choose the one that fits your needs.
Common Configuration
Add this to your .env.local to set your payment provider:
PAYMENT_PROVIDER="STRIPE"Set PAYMENT_PROVIDER to STRIPE, POLAR, or DODO.
Stripe
Stripe is the industry standard for online payments. Great for subscriptions, one-time payments, and global coverage.
1. Create an Account
- Sign up at stripe.com
- Complete your business profile
- Go to Developers > API Keys
2. Add Environment Variables
STRIPE_SECRET_KEY="sk_test_51..."
STRIPE_WEBHOOK_SECRET="whsec_..."| Variable | Description |
|---|---|
STRIPE_SECRET_KEY | Your Stripe secret key (starts with sk_) |
STRIPE_WEBHOOK_SECRET | Webhook signing secret for verifying events |
3. Set Up Webhooks
- Go to Developers > Webhooks in your Stripe Dashboard
- Click Add endpoint
- Enter your webhook URL:
https://yourdomain.com/api/payment/webhook/stripe-
Select these events:
checkout.session.completedcustomer.subscription.createdcustomer.subscription.updatedcustomer.subscription.deleted
-
Copy the Signing secret and add it to
STRIPE_WEBHOOK_SECRET
4. Create Products & Prices
- Go to Products in your Stripe Dashboard
- Create your subscription plans or one-time products
- Copy the Price ID (starts with
price_) for use in your app
Polar
Polar is built for open source monetization. Great for indie hackers and open source maintainers.
1. Create an Account
- Sign up at polar.sh
- Create an organization
- Go to Settings > Developers > Personal Access Tokens
- Create a new token with the required scopes
2. Add Environment Variables
POLAR_ACCESS_TOKEN="polar_oat_..."
POLAR_WEBHOOK_SECRET="polar_whs_..."
POLAR_ENVIRONMENT="sandbox"| Variable | Description |
|---|---|
POLAR_ACCESS_TOKEN | Your Polar access token |
POLAR_WEBHOOK_SECRET | Webhook secret for verifying events |
POLAR_ENVIRONMENT | sandbox for testing, production for live |
3. Set Up Webhooks
- Go to Settings > Webhooks in your Polar Dashboard
- Add a new webhook with your endpoint:
https://yourdomain.com/api/payment/webhook/polar-
Select these events:
order.paidsubscription.createdsubscription.updatedsubscription.activesubscription.canceledsubscription.revoked
-
Copy the webhook secret and add it to
POLAR_WEBHOOK_SECRET
4. Create Products
- Go to Products in your Polar Dashboard
- Create your subscription tiers or products
- Copy the Product ID for use in your app
Dodo Payments
Dodo Payments is a developer-first payment platform with simple integration.
1. Create an Account
- Sign up at dodopayments.com
- Complete your account setup
- Go to API Keys to get your credentials
2. Add Environment Variables
DODO_API_KEY="d2T2..."
DODO_WEBHOOK_SECRET="whsec_..."
DODO_ENVIRONMENT="test_mode"| Variable | Description |
|---|---|
DODO_API_KEY | Your Dodo API key |
DODO_WEBHOOK_SECRET | Webhook secret for verifying events |
DODO_ENVIRONMENT | test_mode for testing, live_mode for production |
3. Set Up Webhooks
- Go to Webhooks in your Dodo Dashboard
- Add your webhook endpoint:
https://yourdomain.com/api/payment/webhook/dodo-
Select these events:
payment.succeededsubscription.activesubscription.updatedsubscription.renewedsubscription.cancelledsubscription.expiredsubscription.deleted
-
Copy the webhook secret and add it to
DODO_WEBHOOK_SECRET

