basejump
basejump copied to clipboard
Small documentation update
I'm looking into how to Default users into a free plan
. The docs for setting up stripe (https://usebasejump.com/docs/billing-stripe) suggest that this setting is in the basejump.config table but that table only has these columns:
The docs later link to an environment variables page that returns a 404 (https://usebasejump.com/docs/environment-variables). The .env file does have a var for STRIPE_DEFAULT_TRIAL_DAYS
. I'm guessing I could hack this default into a free plan by setting STRIPE_DEFAULT_TRIAL_DAYS
to 0 and setting the STRIPE_DEFAULT_PLAN_ID
to a free plan?
Either way some details on how to do that would be useful.
I would probably also change this:
Endpoint URL: https://<your-instance>.com/billing-webhooks
To:
Endpoint URL: https://<yourSupabaseProjRef>.supabase.co/functions/v1/billing-webhooks
Also, with my wsl setup, when I run supabase link, I get the warning:
Failed to save database password: Keyring is not supported on WSL
And as a result, I have to supply --project-ref flags for each of these commands to make the edge functions deploy correctly:
supabase secrets set --project-ref myrefid STRIPE_API_KEY=sk_test_mykey
supabase functions deploy --project-ref myrefid billing-webhooks --no-verify-jwt
Finally, I've tried clearing my npm cache with npm cache clean --force
and still, when I run:
npx @usebasejump/cli@latest init
It puts an index.ts file in supabase/functions/billing-functions that has this line in it:
import {billingFunctionsWrapper, stripeFunctionHandler} from "https://deno.land/x/[email protected]/billing-functions/mod.ts";
Which isn't the latest version of basejump and doesn't deploy correctly. The current main branch of this repo uses:
import {billingFunctionsWrapper, stripeFunctionHandler} from "../deno-packages/billing-functions/mod.ts";
Apologies for the lack of organization here or standard process. I'm a finance bro trying to hack together a web app and haven't gotten around to learning git/github yet so this is the best I could do for now!