remove existing metered stripe plan
@kapa.ai how do i remove the credits plan from the website?
1 Reply
Hi @wbjb. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
To remove the existing credits plan (metered Stripe plan) from the website, you'll need to modify a few parts of your Wasp project. Based on the information provided in the knowledge sources, here are the steps you can take:
1. In your
main.wasp
file, find the section that defines the pricing plans. Look for an object that represents the credits plan, which might look similar to this:
2. To remove this plan, you can either delete the entire object or set disabled: true
if you want to keep the plan definition but hide it from the website.
3. If you have any specific actions or operations related to the credits plan, you should remove or comment them out. For example, look for and remove or comment out lines similar to these in your main.wasp
file:
4. In your server-side code (likely in a file like src/server/actions.js
or src/server/webhooks/stripe.ts
), remove any logic specific to handling credit purchases or updates. This might include functions like stripeCreditsPayment
or webhook handlers that increment user credits.
5. If you have any client-side components or pages that display or handle the credits plan, you should remove or update those as well.
6. After making these changes, make sure to test your application thoroughly to ensure that the credits plan is no longer visible or accessible, and that removing it hasn't caused any unintended side effects in your payment flow.
Remember to also update your Stripe dashboard to remove or disable the corresponding product/price if you no longer want it to be available at all.
Payment for Credits / Credit Balance System provides some context on how credits were implemented, which can guide you on what to remove.
If you need more specific guidance, you may need to provide more details about your current implementation, as the exact steps might vary depending on how deeply the credits system is integrated into your application.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @wbjb, 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?