#sdasdq3we
1 messages · Page 1 of 1 (latest)
What have you tried so far?
{
Customer = company.StripeCustomerId,
Status = "active",
};
SubscriptionService service = new();
StripeList<Subscription> subscriptions = service.List(options);
foreach (Subscription subscription in subscriptions)
{
// Update the subscription's billing cycle end date
var updateOptions = new SubscriptionUpdateOptions
{
BillingCycleAnchor = SubscriptionBillingCycleAnchor.Now
};
var updatedSubscription = service.Update(subscription.Id, updateOptions);
}```
Ok, and what happened? Was there an error?
I dont know how i can set custom date
You'd pass a timestamp from your Date object. I guess you'd need to convert the Date object to an epoch in your code
yes how to convert into that