Responsive Ad Area

Share This Post

test

Stripe switch plan gives error : No subscription with sub_##### in stripe available

I am having a plan of $1600/month, now I want to switch all the users subscribed to this plan to a new plan of $1700/ month. But while switching the particular user I am getting this kind of exception. What could be the possible reason for this. I have used the below code to switch the plan

StripeConfiguration.SetApiKey("My key");
         var service = new SubscriptionService();
        Subscription subscription = service.Get(subscriptionId);

        var items = new List<SubscriptionItemUpdateOption> {
            new SubscriptionItemUpdateOption {
            Id = subscriptionId,
            PlanId = planId,
        },
        };
        var options = new SubscriptionUpdateOptions
        {
            CancelAtPeriodEnd = false,
            Items = items,
        };
        subscription = service.Update(subscriptionId, options);


Stripe switch plan gives error : No subscription with sub_##### in stripe available
Stripe switch plan gives error : No subscription with sub_##### in stripe available
test
{$excerpt:n}

Share This Post

Leave a Reply

Your email address will not be Publishedd. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Skip to toolbar