#Prince

1 messages · Page 1 of 1 (latest)

sudden flumeBOT
twilit moth
#

That's not possible. If a subscription is cancelled, you'll have to create a new one

cedar mango
#

i am using the below code to update the subscription

SubscriptionUpdateParams params = SubscriptionUpdateParams.builder()
.setCancelAtPeriodEnd(false)
.setProrationBehavior(SubscriptionUpdateParams.ProrationBehavior.NONE)
.addItem(
SubscriptionUpdateParams.Item.builder()
.setId(subscription.getItems().getData().get(0).getId())
.setPrice(subscriptionPlan.getStripePriceId())
.build())
.build();
subscriptionObj = subscription.update(params);

cedar mango
twilit moth
#

Ah then it isn't cancelled

#

What is the issue you're seeing?

cedar mango
#

i am facing a exception from stripe that
'you can't update the 'canceled' and 'incomplete_expired' subscription' something like this in response

#

i will send you the subscription id if needed, could you please look into it?

twilit moth
#

Can you send the request id?

cedar mango
#

wait let me check

#

i am getting this in reponse

com.stripe.exception.InvalidRequestException: You cannot update a subscription that is canceled or incomplete_expired.; request-id: req_X9mdf2wH0kBURu

#

request-id: req_X9mdf2wH0kBURu

twilit moth
cedar mango
#

okay but it has trial days left. right?

twilit moth
#

No looks like the subscription was canceled and ended in february. Click that link to see it in the dashboard

cedar mango
#

yes but it has 'trialing until 2/3/23' and also mentioned under the pricing that 'trial 365 days, ends Feb, 2023'

#

could you please explain more on this scenario?

twilit moth
#

You cancelled the subscription

#

If you cancel the subscription, it won't keep trialing

cedar mango
#

but it has trialing days left, so how can i revert this process to active again?