#MarceloOlandim

1 messages · Page 1 of 1 (latest)

sterile thunderBOT
forest palm
#

👋 happy to help

limber basin
#

HI Tarzan, I think we talk alot about phases yesterday

#

Don't know if you remember me

forest palm
#

tell me what's the issue you're facing?

limber basin
#

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

forest palm
#

let me take a look

limber basin
forest palm
#

@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

sterile thunderBOT
forest palm
#

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

#

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

limber basin
#

Any updates

tired bobcat
#

Hi! I'm taking over my colleague. Please, give me a moment to catch up.

tired bobcat
limber basin
#

Sorry, I didn't have seen Tarzan last comments