#gleb-incomplete-sub

1 messages · Page 1 of 1 (latest)

idle horizon
#

hello, reading over one sec

#

The questions are - why? And what should we do not to receive that?
why not switch out the Price on the Subscription rather than canceling and creating a new one

earnest sun
#

Because we have monthly and yearly prices. Depending on what the client has chosen, these subscription items cannot be put into one subscription. So we need to drop and re-create the items separately.

idle horizon
#

if there is only one Price, then you can switch it from monthly to yearly, no?

earnest sun
#

No, we have two prices. One is licensed that can be either monthly or early and another one which is metered that can be monthly only. So when they choose licensed as monthly, we create one subscription with two items. But then if they switch to yearly, we cannot switch the price for our licenses, because one cannot put monthly and yearly into the same subscription

idle horizon
#

got it, yeah in that case there has to be different Subscriptions due to the different billing intervals

earnest sun
#

@idle horizon actually, I just checked on Stripe and it seems that you guys are sending the event only once. It may be that our event bridge is re-trying. I am verifying that right now. Sorry for the trouble in case it's true.

idle horizon
#

ah sorry Gleb I'm unclear, can you rephrase what your question was?

Was it specifically about the invoice.payment_succeeded event being sent multiple times? I thought you already answered that, it was cause you're switching Prices and creating new Subs, no?

earnest sun
#

Yes, but after receiving them once, I used to receive them once more, after their complete deactivation. Turns out it was an issue on our end, sorry for that.