Skipping Payments

How to skip payments completely

You can skip the payments and billing process completely by just removing the payments and billing components from your site. Since the user will be on a free plan by default.

Removing the env vars

Remove the following env vars from your .env file

.env
PAYMENT_PROVIDER
STRIPE_SECRET_KEY
STRIPE_PUBLIC_KEY
STRIPE_WEBHOOK_SECRET
LEMONSQUEEZY_API_KEY
LEMONSQUEEZY_STORE_ID
LEMONSQUEEZY_WEBHOOK_SECRET

Removing the payments and billing components

  1. components/App/Billing/ActiveSubscription.vue
  2. components/App/Billing/CheckoutButton.vue
  3. components/App/Billing/FreeTrial.vue
  4. components/App/Billing/PlanSelector.vue
  5. components/App/Billing

Removing the payments, billing pages and api routes

  1. Remove the setting page - pages/dashboard/index/settings/index/billing.vue
  2. Remove everything from the server - server/api/payment
  3. Remove the billing pages from super admin - server/api/admin/billing

Removing the stripe/lemonsqueezy services

  1. Delete the payment service folder - server/services/payment
  2. Remove the stripe and lemonsqueezy tables from the database, delete the subscriptions table.
  3. Run the migrations - pnpm db:migrate
  4. Deploy the changes - pnpm db:deploy
  5. Uninstall the stripe and lemonsqueezy packages - pnpm remove stripe @lemonsqueezy/lemonsqueezy.js

Other references

  1. Remove the billing link from components/App/UserDropdown.vue
  2. Remove billing link from dashboard sidebar - pages/dashboard/index/settings/index.vue