Hi Guys
I am new to Bubble, I am creating an app where i would need to sell credits to users. How do i go about in creating credits for sale?
Hi Guys
I am new to Bubble, I am creating an app where i would need to sell credits to users. How do i go about in creating credits for sale?
Hey @jan815
Welcome to Bubble As far as accepting payments, this would work the same way anything else would: You could integrate with Stripe and/or Paypal and be ready to go.
You could set up your system for creating credits in a number of different ways. Let’s say that 1 credit = $10, and that in your app, users choose how many credits they want to buy by typing a number into INPUT A (again, the options here for setting this up are endless, this is just an example of one approach you could take).
In your workflows for accepting payments, you can set the option for the amount you’re going to charge to be a dynamic value. So, the amount you’re going to charge the user could be "input A’s value * 10. (whatever the user types into the input, multiplied by 10)
Once the user submits a payment successfully, you could make some changes to their account in your app. You’d likely want to have a field for the User type that stores the number of credits they have (let’s call it “credits”). When the current user purchases x number of credits from you (and after the payment is successful) you could make changes to the current user and set the value of that user’s credits to “current user’s credits + x”. (So, the previous number of credits that the user had + the number of credits they just purchased from you).
Hope this helps. If you get stuck and need help, I offer a coaching service for new Bubblers. Feel free to send a pm.
This topic was automatically closed after 70 days. New replies are no longer allowed.