Transfer Stripe Subscriptions
Right now I am working on an app for a non-profit that I volunteer for. Right now, they use 'Join It' to manage the memberships. This is essentially a stripe wrapper, so the durations/payment are all through our stripe account.
Is there a best practice to migrate users from one platform to another, keeping stripe as the source of truth?
How do I get these users and connections into our database?
4 Replies
Hi @Landyn. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I'm sorry, but the knowledge sources provided do not contain specific information or best practices about migrating Stripe subscriptions from another platform (like 'Join It') into a Wasp app, nor about importing existing Stripe users and their connections into your Wasp database.
The sources do discuss how to set up Stripe payments, handle webhooks, and manage user subscription status within a Wasp app, but they do not cover the process of migrating existing Stripe customers or subscriptions from an external system into Wasp. If you need to perform such a migration, you would likely need to:
1. Export customer and subscription data from Stripe (or your current platform).
2. Import this data into your Wasp app's database, ensuring that user records are correctly linked to their Stripe customer IDs.
3. Update your Wasp app to recognize these users and their subscription statuses based on the imported data.
However, for detailed steps or best practices, the knowledge sources do not provide enough information to give a confident, Wasp-specific answer. You may want to consult Stripe's own documentation or reach out to the Wasp community for more targeted guidance.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @Landyn, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?
Hey @Landyn,
Stripe customers are tied to the business on your Stripe account.
You should be able switch to any other Stripe wrapper while keeping all of the data.
The data is saved at Stripe, not "Join It", so it should stay.
Thanks franjo. That's what I thought, but is there a best practice to link the new user accounts on open-saas to the existing stripe account?
I can sign up a new user no problem, but want to ensure a smooth transition. Do I pre-populate the user table with stripe data?
I would do it on
email
basis, which open-saas
does already.
If a Stripe customer with the same email as user already exists, fetch that customer and assign that customer id to user's paymentProviderId
.
No need to do it upfront.
Though this will only work if there was only 1 Stripe customer per 1 email.
That is what open-saas
assumes, but is not restricted by Stripe.