#DeputyCheese

1 messages · Page 1 of 1 (latest)

dapper ospreyBOT
misty bolt
#

I already received the subscription updated event, but I'm waiting for the invoice.paid event to renew only subscriptions that were 100% paid for on our side.

frail sierra
#

👋 happy to help

#

in the first invoice we try to finalize/pay the invoice directly, in subsequent invoices we would finalize the invoice first and then wait 1h before trying to get it paid

#

so basically that's what's happening here

misty bolt
#

Ah thanks, so if I wait for ~1h the invoice.paid event should be called, right?

frail sierra
#

if there's a payment method and the payment succeeds

misty bolt
#

Okay thanks, but this should be the case for the above subscription (in dev mode)?

frail sierra
#

I haven't had the chance to take a look at the subscription to be honest

#

but if you're in dev mode why not use test clocks to advance in time and see what happens

misty bolt
#

Okay one more question: what happens after the subscription updated event has been called, but the invoice hasn't been paid yet AND the user upgrades/downgrades his subscription in exactly this time frame?

flat pecan
#

it would just downgrade it as well according to the parameters you pass