#Sanjeev Sundaravarathan
1 messages · Page 1 of 1 (latest)
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.
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 ?
I think so
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?
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
sorry But docs doesnt have this field for finalize invoice
{stripe_account:"acct_xxx"}