#machiavellia
1 messages · Page 1 of 1 (latest)
hello! can you share an example subscription id?
yes sec
no easy way to do so in Stripe unfortunately. It's possible, but would require you to implement your own code/logic to update certain parameters
Yeah that is fine, I am trying to determine this dynamically, so I can apply it for multiple subscriptions
one idea that comes to mind is to set the number of payments on the Subscription via metadata when the Subscription is first created
subsequently for every invoice.paid event for that subscription, you would update the metadata to reflect the remaining payments
in case you haven't seen this yet, you can use test clocks to mimic the passing of time : https://stripe.com/docs/billing/testing/test-clocks
And just to confirm, so Stripe doesn't save the initial number of predestined payments from clickFunnels?
Does that mean before each invoice stripe pulls from clickfunnels that number? And then it determines if there is a next payment?
And just to confirm, so Stripe doesn't save the initial number of predestined payments from clickFunnels?
no, we don't. Based off the Subscription id you provided, there's nothing there that indicates the initial number of payments
Thank you for explaining that! So how does stripe then determine when to stop the next invoice? It must determine it somehow
clickfunnels is likely tracking and sending a request to cancel the Subscription when the time comes
but that's just a guess from my end
ultimately, we wouldn't know how clickfunnels work. You may want to reach out to them to see if they can shed more light on how they go about it
I really appreciate you taking on my question Alex!
And yup I initially asked Clickfunnels but they told me to ask Stripe instead sorry!
if you have a subscription that was cancelled when the payments were completed, i can take a look at that too
I was going over the doc you sent btw, it says this:
" For the Subscription schedule, define the start and end date for the subscription and when to start the billing cycle."
So I am the stripe subscription initiated on clickfunnels doesn't create a schedule?
yep, it doesn't create a schedule
Thankfully, that is not an issue currently. I was just hoping stripe would have something in the api where I could determine the remaining number of payments for a subscription
Thank you for letting me know about using the Metadata to determine it, I will look into it.
I really appreciate you explaining everything, I was trying to find something in the api for this. But couldn't find anything
just to clarify, is it that you want to end the subscription after a certain number of payments?
and clickfunnels doesn't currently provide that functionality so you're trying to implement that?
if that's the case, that you can create a Subscription Schedule from an existing Subscription
No worries I can explain! On that initial clickfunnels doc I sent. It explains what I am doing. Which is basically how to sell a subscription stripe product.
During the process I set a predetermined number of payments. After that number is reached the customer is no longer billed for that product and they keep it.
So yes clickfunnels currently provides that functionality. So I am trying to figure out how this process is handled at stripe's end.
Since stripe will stop billing after that x number of payments
do you have a subscription whereby a customer has already paid for all their payments?
if you can share a subscription id, i can take a look at what happens
Will you be available tomorrow? I am not sure how long it will take to find a subscription where that is the case
you can come back tomorrow and post your question in the main channel again, someone else will be around to help