Hi, I am making an app that checks things in and out. When a customer checks something out but does not return it, the app will charge them the cost of the item.
How do I set up this charge?
I think it needs to be a backend API workflow because it needs to trigger any time a customer’s return deadline is passed without them returning the item.
To call the right user, I would guess you use the “Charge a user using a saved cc”, where the Charged User = [Do a Search for → Items’ (whose Return Deadlines = Today’s Date/Time AND Checked out? = “yes”)'s Checked-out-to]. In summary, it searches for items that meet certain criteria (it’s still checked out and the countdown passed) and charges the User that the item is checked out to.
My problem is after that, connecting it to the one-off Stripe product, calling that User’s Stripe account for their CC, etc.
You should do the steps you mentioned either when someone is buying the product for the first time, or when they log in to the system next time. Obviously, they have to connect their CC or stripe account to your system when they are using your system. You can’t do this part in the backend.
Then, your logic for the first part is correct to charge while deadline is passing.
Thanks so much for responding! Do you have any guidance on how to connect the Stripe cost to Bubble? I might just need to go through a big Stripe tutorial video. Thanks!