#lenqbit
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Let's chat here
Could this be happening because there are no default payment method?
Actually scratch that last question I've just check another customer and they have a default payment method but yet seeing the invoices created still opened and their payment method is not charged
Can you share an example invoice that I can take a look at?
taking a look...
thanks
It looks like auto_advance is set to false on the invoice
that's why its not getting paid
You can call this endpoint to pay the invoice
https://stripe.com/docs/api/invoices/pay
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok so we also thought that might be it so we made a change to set the flag to true on invoice creation
but were not 100% sure about the change hence why we reached out
cool is this needed for invoices that were create manually if we want it to be paid?
having the invoice created with the default charge_automatically isn't enough?
I'm not sure why its setting auto advance to false here. still looking into that
sorry just to clarify what I meant the example invoice I sent you wasn't created with auto_advance set to true
we made that change only a few days ago after we thought this might be the reason
but were not 100 % sure
My understanding was that by default we set auto_advance to true
oh ok
checking to see if there's a dashboard setting controlling this
ok cool
thanks
what about the payment intent being in requires_confirmation status though?
why is it in this status? Or is this a red herring?
What billing plan are you on currently? It looks like automatic collection is part of Invoicing Plus. It may be the billing plan causing this behaviour?
Sorry let me check that for you
only have developer access so not sure I can check that
need to ask internally
Looks like one off invoices for a subscription are auto advance false by default. I tested it on my account just to see what the default behavior is.
ok ๐ so we are now setting that flag explicitly to true on invoice creation. So it should fix the issue?
Yup, it should.
cool. The payment intent status being requires_confirmation is normal?
I believe so, since the invoice didn't auto advance
Thanks a lot for your help
so for the ones that are opened and not paid (created before we made the change) we can just use the /pay endpoint as you suggested to charge them?
Yup, that should work
any specific parameters we should use? or just call it without any and it should charge the payment on file
I believe you can just call it with the invoice ID