#raamyy
1 messages · Page 1 of 1 (latest)
hi! there's nothing really technical or built-in to Stripe for that. You can charge an end-customer and add the amount to some database table in your system to indidcate that customer has a certain balance, and then if they want to make a purchase in future, you can decrement your database table instead of calling Stripe again to process a payment, for example.
@haughty cove But I am thinking of having stripe to contain the source of truth of the current customer's balance.
Can I deduct balance manually from stripe, instead of having the data in my dB?
because it is not just one time charge, it may envovle multiple charges and purchases
I suppose you could, you can adjust https://stripe.com/docs/api/customers/update#update_customer-balance with the amounts, or use metadata on the Customer object.
I'll try look into it more thanks @haughty cove !