One time payment?
I am making a saas that will have a one time payment fee . Is this possible?
3 Replies
Hi @XMDCode. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Yes, it is possible to implement a one-time payment fee in a Wasp-based SaaS app. The OpenSaaS starter template, which is commonly used for SaaS projects with Wasp, supports both subscription and one-time payment models using Stripe.
To set up a one-time payment, you need to:
1. Create a Stripe product with a one-time price (not a subscription).
2. Configure your Wasp app to use this product's price ID (e.g., set a CREDITS_PRICE_ID in your .env file).
3. Update your server-side logic to handle the one-time payment and credit the user or unlock features as needed.
There are examples and discussions in the community about how to credit a user after a one-time payment, including code snippets and references to the relevant parts of the OpenSaaS codebase. For example, you can see how to increment user credits after a successful one-time payment by checking the price ID in the Stripe webhook handler and updating the user accordingly. You can find a code example here: Crediting a user with a product payment instead of a subscription.
Community members have confirmed that this approach works, and you can have both subscription and one-time payment options in your app if needed. Just make sure to configure the correct Stripe product IDs and update your logic to handle each payment type appropriately. If you need more details, the OpenSaaS template and its documentation are a good starting point for implementation guidance<sup>Payment for Credits / Credit Balance System – Discord</sup>.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @XMDCode, 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 @XMDCode
Yes, Aboslutely! You'll just need some adaptations to the template
But that's what templates are for 🙂
Ok then thank you will do !