#coachleyton
1 messages ยท Page 1 of 1 (latest)
๐ You could do just that: update the subscription and skip prorations. You can also use Subscription Schedules to have the price change occur at a future date: https://stripe.com/docs/billing/subscriptions/subscription-schedules/use-cases#upgrading-subscriptions
Well, on my app's website I have a "Next payment due on" and "Amount Due", so the customer knows what amount to expect to pay. I use the upcoming invoice API for this. So, if I update the Subscription and just skip prorations, then the upcoming invoice API should reflect the newly adjusted price?
Yep, it should. I recommend testing this out as well using Test Clocks: https://stripe.com/docs/billing/testing/test-clocks
Yeah, I use that feature a lot (not sure what I'd do without it ๐)
Are you okay to keep this thread open whilst I attempt to implement this? I usually stumble upon some follow up questions
I'll keep this open for a few more minutes but these threads aren't meant to be long lived
Hi, I'm having trouble listing Subscriptions. For some reason, this code that gets all subscriptions that use the given PriceId is just returning nothing:
var options = new Stripe.SubscriptionListOptions
{
Limit = 10,
Price = "price_1NPCM9HxbsbtU2J3sATHyS4b",
};
IEnumerable<Stripe.Subscription> subscriptions = (await _subscriptionService.ListAsync(options, cancellationToken: cancellationToken)).ToList();
When debugging, I can see that subcriprions is empty
Request Id is req_VMpE5h4XJcwamB
I know that there is at least one subscription that uses that Price, which has Id sub_1NemyZHxbsbtU2J3MYtqbMq6
am I missing something here
probably lol
ah, I think you also want to include the test clock in this case: https://stripe.com/docs/api/subscriptions/list?lang=dotnet#list_subscriptions-test_clock
ahhhh that's the one. Always forget about the clock. Thank you