#darth-subscription-upgrade

1 messages ยท Page 1 of 1 (latest)

brittle quailBOT
halcyon jackal
#

darth-subscription-upgrade

valid yoke
#

Hey, @halcyon jackal, so only setting the billing_cycle_anchor to now should do the trick?

halcyon jackal
valid yoke
#

ok, and the proration_behavior: 'always invoice' is ok to be passed?

halcyon jackal
#

sure! Sorry this is all explained in details in the docs I shared. So the next step is to pause and read those carefully first

brittle quailBOT
valid yoke
#

I've read the docs, that's why I'm asking since I thought I missed something, because I tried to update the customer subscription and the invoice instead of having the status as paid was open ...

faint seal
#

๐Ÿ‘‹ stepping in as koopajah needs to step away

valid yoke
#

Hey

#

thanks @faint seal

faint seal
#

If you update the billing anchor to now or set proration behavior to always_invoice then a new Invoice is generated

valid yoke
#

yes, I see that

faint seal
#

So totally possible it could be open if there wasn't a successful payment

#

Does your Sub have a default payment method?

valid yoke
#

yes, it does

#

let me double check, one sec

faint seal
#

Sure, also feel free to send me the Invoice ID that you are looking at

valid yoke
#

in_1OJi6nKaxhelao9Wa3fmbK50

faint seal
#

Thanks looking

valid yoke
#

Thank you man

#

๐Ÿ™

faint seal
#

There is no payment attempt because you are using payment_behavior: default_incomplete

#

That indicates it shouldn't attempt payment without an explicit confirmation request

valid yoke
#

ohhh

faint seal
#

If you use allow_incomplete (the default behavior) then you will see a payment attempt on the update

valid yoke
#

make sense

#

so I should use allow_incomplete and with this the payment will be done right away by stripe, am I right?

faint seal
#

Yep

valid yoke
#

ok, let me please try

faint seal
#

You can just omit payment_behavior really

#

allow_incomplete is the default behavior

valid yoke
#

yes

#

let me please push the changes and test again

#

thanks man for the help ๐Ÿ™‚

faint seal
#

Sure thing

valid yoke
#

ok, it worked

#

I see the the second invoice (the update) to have th status paid

#

in_1OJiSAKaxhelao9WIPzYyCEl

#

so it worked, lel