Files
myeasycms-v2/apps/web
giancarlo d6004f2f7e Refactor billing gateway and enhance localization
Refactored the 'plan-picker' component in the billing gateway to remove unwanted line items and improve checkout session and subscription handling. Enhanced the localization support by adding translations in the plan picker and introduced a new function to check trial eligibility so that existing customers can't start a new trial period. These changes enhance the usability of the application across different regions and provide accurate trial period conditions.
2024-04-01 11:52:35 +08:00
..
2024-03-24 02:23:22 +08:00
2024-03-24 02:23:22 +08:00
2024-03-24 02:23:22 +08:00
2024-03-24 02:23:22 +08:00
2024-03-24 02:23:22 +08:00
2024-03-24 02:23:22 +08:00

Your Application

Write here everything about your application.

Setup

For working locally, please add a file named .env.local where we can place our environment variables. This file is not committed to Git, therefore it is safe to store sensitive information in it.

After starting Supabase, copy the service role key from the Supabase project settings and add it to the .env.local file.

SUPABASE_SERVICE_ROLE_KEY=your-service-role-key

Stripe

For the Stripe integration, first we need to start the Stripe CLI:

pnpm run stripe:listen

Then, update the .env.local file with the following variables:

STRIPE_WEBHOOK_SECRET=
STRIPE_SECRET_KEY=
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=

Supabase

Please follow the instructions in the Supabase README to setup your Supabase project.