#Sanjeev Sundaravarathan

1 messages · Page 1 of 1 (latest)

elder flickerBOT
hot holly
#

hi! hard for me to answer just looking at the code, I'd suggest you run it and test for yourself and see if it does what you expect. You can use TestClocks to try it out.

And the subscription.latest_invoice.payment_intent is none stripe.SubscriptionSchedule.create() with the above data. can some one please explain why is that please?
you have to manually call the Finalize Invoice API on that invoice, or wait an hour.

twilit siren
#

Thanks for your reply, should 1st index of phases should have just interval_count to just 1 right? so that phase will finish just after that end_date and it wont charge anymore till end_date right ?

hot holly
#

I think so

twilit siren
#

thank you so much for response

#

Sorry one more small thing on above,

stripe.Invoice.finalize_invoice( invoice_id, )

when i try to manually finalize invoice, I am getting above error,

["Request req_IZf36Be2fQv0le: No such invoice: 'in_1Lp8mICeJzmcFlXw0suPiwpB'"]

can you please help me with this please?

hot holly
#

you need to pass the stripe-account option because you're using Connect

#

like stripe.Invoice.finalize_invoice(invoice_id, {stripe_account:"acct_xxx"}) I think, can't remember the exact syntax for Python

twilit siren
#

sorry But docs doesnt have this field for finalize invoice
{stripe_account:"acct_xxx"}

hot holly
#

yes but it will work anyway

#

all endpoints support stripe-account. You already used it before on other request you made to e.g. create the schedule