#Prince
1 messages · Page 1 of 1 (latest)
That's not possible. If a subscription is cancelled, you'll have to create a new one
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);
it's still has days left in the subscription period
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?
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Can you send the request id?
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
Ah the subscription is already canceled: https://dashboard.stripe.com/test/subscriptions/sub_1KP8YsKmlDsDVSTgEoIirbsc
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
okay but it has trial days left. right?
No looks like the subscription was canceled and ended in february. Click that link to see it in the dashboard
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?
You cancelled the subscription
If you cancel the subscription, it won't keep trialing
but it has trialing days left, so how can i revert this process to active again?