#nick-invoice-paid

1 messages · Page 1 of 1 (latest)

rotund waveBOT
rapid ocean
#

nick-invoice-paid

merry tangle
#

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?

rapid ocean
#

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

merry tangle
#

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 😛

rapid ocean
#

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

merry tangle
#

Sorry, by allow_incomplete I meant default_incomplete

#

or at least, I don't see anything scheduling it for payment?

rapid ocean
#

You can try this, I don't think it works to mark as paid out of band but I haven't tried

merry tangle
#

Just tried, seems to work

rapid ocean
#

and the subscription is active after that?

merry tangle
#

Yeah

#

I can't tell if that payment would have charged or not. Will have to try again