#freebobrett_best-practices

1 messages ¡ Page 1 of 1 (latest)

gaunt daggerBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1438587500619763832

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

hot finch
#

Hi there

#

Can you tell me more about what you are trying to do?

gilded plaza
#

Hey! I was going to gather more info for you.

#

We are building a reservation system where users can put deposits down, track their balance, payments mades, refunds made, modifications can change price and therefore change balance based on payments already made ect.

#

We are currently utilizing stripe customers and payments/refunds for this functionality but are having a lot of problem with deposits and balances and stuff

#

We were thinking surely stripe has something to help but have had a lot of trouble getting all of this wroking. we tried a workaround utilizing stripe draft invoices but it just doesnt seem powerful enough or intentional enough for this use case specifically. If you have speicifc questions ill give you info on our front/back end.

hot finch
#

I think you are asking of a way to track a Customer's balance in Stripe?

gilded plaza
#

I guess so, yeah

hot finch
#

So there isn't exactly a product in Stripe that does this -- I'd mostly recommend tracking this in your own database. That said, if you want you can use the Customer Credit Balance (https://docs.stripe.com/invoicing/customer/balance) to track a Customer's balance. This requires using Invoices though as that Balance is then applied to the next finalized Invoice for the Customer. But basically you would update that balance based on taking payments or issuing refunds for your customers.

gilded plaza
#

I did go down the customer credit balance route and you are right it doesnt seem to solve my problem only add complexity.

So tracking this in my own database... are there any stripe projects out there that you know of that could explain how people do this? Surely deposit payments and balance tracking common enough?

I also considered using stripe invoices, even considered the .4%, but our ability to modify invoices after a payment has been taken is undefined and not that intuitive. Or adding or editing or removing line items on an invoice with payments on it.

If I did that, I could derive the balance ect based on whats on that invoice but that might as well be in my own db at that point