stripe best practices

I built out an MVP using wasp AI. Is there an easy way to port it over to Opensaas so i can have stripe? or should i just add stripe to my current app? I'm curious to hear what most peoples' workflows are
2 Replies
kapa.ai
kapa.ai2mo ago
Hi @Billy Howell. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- You have two options to integrate Stripe into your Wasp application: 1. Port your MVP to OpenSaaS: OpenSaaS is a SaaS boilerplate template built with Wasp that comes with Stripe payments integrated. You can create a new project using the OpenSaaS template with the command wasp new <project-name> -t saas. After that, you would need to port your MVP code into this new project. 2. Add Stripe to your current app: You can also integrate Stripe into your existing Wasp application. This would involve setting up Stripe on your own and writing the necessary code to handle payments. The best approach depends on your specific needs and how much of the functionality provided by OpenSaaS you want to use. If you want to leverage the other features of OpenSaaS (like Auth, ChatGPT API, Google Auth, SendGrid, Tailwind, & Cron Jobs), porting your MVP to OpenSaaS might be the better option. If you only need Stripe payments and you've already built out most of your app, it might be easier to add Stripe to your current app. For debugging a Stripe integration, adding console.log lines can be helpful. Also, ensure you have the Stripe CLI running when testing and follow all the directions in the Stripe testing guide (https://docs.opensaas.sh/guides/stripe-testing/). Remember to check your API version numbers and ensure that the Stripe webhook is forwarded to the correct port. If you encounter a tax error issue, you might need to adjust the stripe tax flag in your code or fix the tax settings on your Stripe dashboard. For more complex issues or specific use cases, you might want to ask for help in the Wasp community on Discord or open a Github issue. Sources: - Discord support thread: stripe integration debugging best practices (https://discord.com/channels/686873244791210014/1200182362449907813) - Discord support thread: hi getting a [ Server ] POST /operations/stripe-payment 500 44.007 ms (https://discord.com/channels/686873244791210014/1215945587841831033) - Wasp Docs: Starter Templates (https://wasp-lang.dev/docs/project/starter-templates#available-templates) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Billy Howell, 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?
Want results from more Discord servers?
Add your server