#tbhaxor - subscription

1 messages · Page 1 of 1 (latest)

edgy stirrup
#

Hi there!

raw dirge
#

I want to make the function generic, so will this payload in request work? { id: stripeItem.id, quantity, deleted: quantity === 0 }

#

"message": "When payment_behavior is set to pending_if_incomplete, you can only pass supported params. items[0][deleted] is not supported."

#

Getting this error

gentle topaz
raw dirge
#

I see

#

You already documented everything, great

#

Is it possible to change the payment behaviour?

#

of running subscription?

#

It must have been stored somewhere in the stripe :/

gentle topaz
raw dirge
#

Yes it does make sense

raw dirge
#

I have tried upgrading (increment quantity) the subscription after downgrading (descreat quantity). Why is this invoice is open? The upgrade was done with always invoice. Also, when it be marked paid?

in_1LI8plHn3Zy4ma8ua40YbSU4

#

hey @gentle topaz Could you look into this :/

gentle topaz
#

sure, one sec

#

basically it's open since auto_advance is false on that Invoice. That might be because you used "payment_behavior": "default_incomplete" on the API call that triggered it(you generally don't use the parameter for updates, only creation of subscriptions).

If you set https://stripe.com/docs/api/invoices/update#update_invoice-auto_advance to true on the Invoice object we will pick it up and try to charge it soon

raw dirge
#

Yeah, got it

#

I will update the code now

midnight whale
#

Is there anyway to resend all the failed webhooks at once?

#

There's not, no

raw dirge
#

Got it