W
Wasp-lang2mo ago
Jorge

Plan switching not reflected in the database

Using Stripe, I switched from the hobby to the pro plan, but this change doesn’t seem to be reported to the database. Is this feature supposed to be supported?
No description
No description
2 Replies
kapa.ai
kapa.ai2mo ago
Hi @Jorge. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I don't know enough to give you a confident answer yet. However, it seems like there might be some issues with the Stripe integration and the database updating process. In one of the Discord threads (https://discord.com/channels/686873244791210014/1214979650803998781), a community member mentioned a similar issue where the checkout.session.completed event didn't fire first, causing some issues. Also, in the Wasp documentation (https://wasp-lang.dev/docs/data-model/backends#api-reference), it's mentioned that you can specify which database to use in the app declaration's db field. You might want to check your Stripe integration and the database setup in your Wasp application. If the issue persists, I recommend reaching out to the Wasp community or opening an issue on the Wasp GitHub page (https://github.com/wasp-lang/wasp/issues). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Jorge, 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?
miho
miho2mo ago
Based on the webhook set up we have for Stripe, it seems it should be handled: https://github.com/wasp-lang/open-saas/blob/main/template/app/src/payment/stripe/webhook.ts#L36C1-L39C13 Does the webhook work for you in other cases?
GitHub
open-saas/template/app/src/payment/stripe/webhook.ts at main · wasp...
A free, open-source SaaS app starter for React & Node.js with superpowers. Full-featured. Community-driven. - wasp-lang/open-saas
Want results from more Discord servers?
Add your server