Volume purchasing instead of subscription/credits
I want to sell pears and apples.
My users can buy 4 pears and 3 apples from me.
Pear is a Stripe product.
Apple is another.
How could I manage this situation?
4 pears + 3 apples
6 Replies
Hi @NEROX. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Based on the knowledge sources provided, I don't have specific information about implementing a volume purchasing system for multiple products like pears and apples in Wasp. The examples and discussions in the given sources primarily focus on subscription models and credit-based systems.
However, I can provide some general guidance based on the Stripe integration examples in Wasp:
1. You would need to set up separate Stripe products for pears and apples.
2. Instead of using a subscription model, you'd want to use Stripe's one-time payment option. This is mentioned in one of the Discord conversations:
Discord support thread (https://discord.com/channels/686873244791210014/1205328655300038766)
"when creating a stripe product, you can choose a normal one-time payment for a product (instead of a subscription)"
3. You'd need to modify the checkout process to allow users to select quantities of each product and calculate the total price.
4. In your Wasp backend, you'd need to create a custom action to handle the purchase of multiple products in a single transaction.
5. After a successful payment, you'd update the user's purchase history or inventory in your database.
To implement this specific use case, you'd likely need to extend the existing Stripe integration examples in Wasp and create custom logic for handling multiple product purchases. Unfortunately, the provided knowledge sources don't contain detailed information on implementing this exact scenario.
If you need more specific guidance, I recommend asking in the Wasp community Discord channel or consulting the Stripe documentation for handling multiple product purchases in a single transaction.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @NEROX, 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?
Has any @Wasp Expert encountered this situation?
Or @Wasp Team ?
I don't really understand the question. Just make two separate one-time payment stripe products, no?
I'm trying to manage this
My brother is opening a store and my idea is an app to be able to manage all orders through Stripe
There should be a way to change the quantity of each one-time purchase item, yes.