#MarceloOlandim
1 messages · Page 1 of 1 (latest)
👋 happy to help
HI Tarzan, I think we talk alot about phases yesterday
Don't know if you remember me
tell me what's the issue you're facing?
Anyway. I applied a schedule on an annual subscription already paid by a customer.
I created a scheduler using the subscriptoin id:
from_subscription: createdSubscriptionId,
)}
Then I update the scheduler to add 2 phases.
await stripeApi.subscriptionSchedules.update(
'sub_sched_1MrIQqC6SiKqhq3NkT2zAmd1',
{
end_behavior: 'release',
phases: [
{
start_date: 'now',
items: [{ price: annualStripePriceId, quantity: 1 }],
end_date: getUnixTime(addMonths(new Date(), 3)),
},
{
items: [{ price: annualStripePriceId, quantity: 1 }],
end_date: getUnixTime(addMonths(new Date(), 9)),
},
],
}
);
I was talking with one of your colleagues that I couldn't see any future invoices on the stripe console using the mechanic. He mentioned that Stripe console is not good to see phases and asked to use the Clock simulation.
I used the clock simulation and advange the time in 4 months. In theory the user should had been charged again, but no
There was no charge
let me take a look
This is the user inside the clock simulator:
https://dashboard.stripe.com/test/subscriptions/sub_1MrINZC6SiKqhq3NxMN7s5Pz
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
@limber basin please bear with me while I investigate what's happening here
it's going to take me a while so please hang in
I think what happened here was caused by this request https://dashboard.stripe.com/test/logs/req_p426FICfHE1wps
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
so basically you updated the subscription schedule and added a 1 year price as the first phase
but this resulted in an invoice that failed to be paid
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
so the next change didn't take affect
since this is in test mode
I suggest you recreate the scenario from the ground up
and try it again
Any updates
Hi! I'm taking over my colleague. Please, give me a moment to catch up.
What do you mean exactly?
Sorry, I didn't have seen Tarzan last comments