#nick-invoice-paid
1 messages · Page 1 of 1 (latest)
nick-invoice-paid
Hey @merry tangle do you mean https://stripe.com/docs/api/invoices/pay#pay_invoice-paid_out_of_band?
That's the one!
Thank you
Is there any way to combine this with subscription creation? ie, the subscription is created, and I can pass this to automatically mark the generated invoice as paid out of band?
no because the subscription creation will attempt payment automatically
what you could do is create the Subscription via a SubscriptionSchedule instead. This keeps the first Invoice open
so you could finalize it and mark it as paid out of band in that case
Would creating the subscription with payment_behavior=allow_incomplete, and then following up with a call to update the invoice that's generated as paid_out_of_band also work?
I can try it myself just wondering if you know off the top of your head 😛
no it wouldn't work
that would attempt to pay the invoice, or go to incomplete
the schedule approach is the best way if you really want the first invoice to be marked as paid out of band
Sorry, by allow_incomplete I meant default_incomplete
It looks like it creates an invoice, and leaves it open https://dashboard.stripe.com/test/invoices/in_1LufgfI67GP2qpb4NM4QcZqh
or at least, I don't see anything scheduling it for payment?
You can try this, I don't think it works to mark as paid out of band but I haven't tried
Just tried, seems to work
and the subscription is active after that?
Yeah
I can't tell if that payment would have charged or not. Will have to try again
Here's a new one: https://dashboard.stripe.com/test/payments/pi_3LufnqI67GP2qpb40K9Aoa9L
Looks like it's going to just wait indefinitely for the customer to pay. So i think I'm good