#xfechx-sub-schedule
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
What have you looked at so far?
Subscription objects have a schedule property that can be null: https://docs.stripe.com/api/subscriptions/object#subscription_object-schedule
xfechx-sub-schedule
sorry, looking now
@earnest tinsel any luck?
I am trying to replace the following line:
$max_occurrences = $subscription->max_occurrences;
I have subscriptions with max occurencces right now, so would be good to have something that is compatible with that and the subscription schedules
and also my question: the ongoing subscriptions that i have with max_occurrences going on at the moment are being changed to be now subscription schedules, will they continue to have the max occurrences parameter activated anyway until later yes?
I'm not sure I follow what you're trying to do?
Can you resummarize your question and add all context in a single message?
Okay, I think I see what you're getting at.
@earnest tinsel It would still be helpful to get more context on what you're trying to do. If you have any subscriptions that currently use max_occurrences, are you trying to switch to Schedules because you need to update max_occurrences, too?
yes, I already wrote some code to switch to Schedules,
yes, something to compare with max ocurrences, the actual number. with max ocurrences is a number, and with Schedules is an object, so need to find out if it is a subscription that has max_ocurrences OR Schedules and how many
i don't know if it makes sense
ok, so in my code, if I have max_ocurrences, but in it also addresses migrating to Schedules, will the max ocurences parameter still live within this subscription?
on next iterations? until it is over
Any existing Subscriptions that use max_occurrences will remain as is. If you need to create a new Subscription with a concrete end time, you should use Schedules and phase iterations.
ok, so in my code, if I have max_ocurrences, but in it also addresses migrating to Schedules, will the max ocurences parameter still live within this subscription?
I don't follow this question. Can you rephrase?