#arsani-sinout_api
1 messages ¡ Page 1 of 1 (latest)
đ 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/1219368289529102437
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello, are you directly writing your own Stripe API code here? This server is for questions about Stripe's API itself, unfortunately we do not know specifically about Ringba or how they integrate with Stripe
No I am just asking, if it is not Ringba , usually how do i utilize Stripe API to achieve auto recharge recurring payments for my clients on a third party ?
We have Stripe Billing for that which allows you to make subscriptions that charge customers on regular intervals. Here is the intro doc/guide for that https://docs.stripe.com/implementation-guides/billing
Okay i get that, but what I am trying to achieve is to charge customers after they lie under a certain amount of balance; basically based on real-time events rather than periods of time
In that case you may want to track that on your system and then charge a one time payment when that threshold is hit. Our subscriptions all work on regular intervals, you can use metered usage where you report the usage i real time, but that would still be charged monthly/weekly/yearly/etc.
Can you tell me more about what you ideally want this flow to look like? Does the customer save a payment method with you and you charge it automatically later? Or are you sending them something for them to submit their payment method details each time?
The customer saves a payment method that we charge them (on pre-paid basis) and then when they exhaust their balance (fall under certain threshold) they should be recharged automatically (given they have already saved their payment method)
Gotcha, unfortunately we don't provide the usage tracking part of that. So a typical Stripe integration that does this would charge the customer, log on their side how much credit the user has, track as that credit gets used, and then make a new payment when new funds are needed
These docs should be helpful starting places to see how to save and re use payment methods like that with Stripe
https://docs.stripe.com/payments/save-and-reuse
https://docs.stripe.com/payments/save-during-payment
A trivial question , just because i am new to all of this ; these should be utilized in a code on webserver ? or does Stripe provide the suitable platform for this ?