I have an app which lets the users dial number(s) they want to add to a call. Each user is subjected to Balance they have in their account.
The dial is performed by using TwiML <Dial>
So as per my amount per minute rate i calculate the remaining balance in terms of seconds and set that as a timeLimit
for <Dial>
.
I want to do a simple thing like when the user is in a call and his call timeLimit
is about to expire, I would want to charge them using my payment methods and If the charge was a success replenish the timeLimit
for the same call.
Can this be done?