#sdasdq3we

1 messages · Page 1 of 1 (latest)

fathom basinBOT
proud hinge
#

What have you tried so far?

dense hill
#
{
    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);

}```
proud hinge
#

Ok, and what happened? Was there an error?

dense hill
#

I dont know how i can set custom date

proud hinge
#

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

dense hill
#

yes how to convert into that