Comments (3)
This is awesome - thank you! I'll make these changes shortly.
As for defaulting into a free plan. Yes you can set the trial days to 0 and the plan_id to the free one you've created in Stripe. That will work just fine. I'll add a quick how-to on each of the billing scenarios listed here: https://usebasejump.com/docs/billing-stripe
from basejump.
I'm having similar issue getting it to start a trial subscription. I've added the STRIPE_DEFAULT_PLAN_ID and STRIPE_DEFAULT_TRIAL_DAYS as secrets to the edge functions and see them in the logs when it executes the get_billing_status function. But it's only creating a customer and not a subscription.
Digging through the function code, it appears the issue may be in the stripe-function-handler. The default plan id and trial days are passed into the handler. The getBillingStatus function in the handler also has them passed in as parameters. And the get-billing-status function that calls the stripe getBillingStatus isn't passing in any values for default plan id or trial days.
Or I may just be misreading how the code works and it's just an issue with something I'm doing.
from basejump.
Hi I'm also struggling with this. I can't figure out how to start off a customer with a free plan? I set trial days to 0 and set a price ID in the env, and started my local supabase instance. I can see me plans when I fetch them so stripe is properly set up. Will this only apply if I create a new user or something since I changed it after the fact?
from basejump.
Related Issues (20)
- typo in docs HOT 1
- get_personal_account doesn't include email HOT 2
- Recommended way to get account_id throughout project? HOT 1
- This project should use the same copy-paste logic as the UI components HOT 1
- Package issue with vite/react causes build error HOT 1
- Cannot run db reset on remote database HOT 2
- Use new Auth Hooks approach? HOT 1
- Can we use basejump with hosted supabase? HOT 2
- Confused on how to use RPC to get account info. HOT 6
- get_account_members function from documentation does not exist HOT 2
- Is there a recommended way to remove or delete a user from a team? HOT 2
- How can I integrate Basejump in an existing DB
- Invitation should have a reference to the invited user
- Webhook doesnt exist even though its in documentation? HOT 2
- Ways to get account ID in API routes for teams or personal.
- Automatically creating API keys and accessing on the backend
- can't create account
- how to delete a team account? HOT 2
- Get currently selected ID
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from basejump.