#ChibiDragoon
1 messages · Page 1 of 1 (latest)
I'm not sure what you mean by this. Can you try explain with an example, or another way?
ok
create an invoice to modify the payment intent
before, i was creating a payment intent and when i put the parameter confirm to true, the payment intent was payed instantly
now that i am trying to do the same payment but using a invoice
oh
wait, i asked the wrong question
i have put my invoice to auto advance but i still have to manually review the invoice for it to finish
is there something that could be missing from it for me not to have to manually review the invoice?
What do you mean by manually review?
if you share an invoice ID and/or request ID i can take a look
in_1N48WLR3ylUYYiIEvhYEnurF
Oh in the dashboard -- that's part of the UI to finalize the invoice and is required. Otherwise you could build an API integration to automate more of these steps.
ohh it's because it takes an hour 🤦‍♂️
i forgot about that
i will change my question again. Is it possible to make the invoice not wait 1 hour before trying to do the payment
i wish to make the payment the moment it is created not wait 1 hour as mentionned on the dashboard
You can finalize an invoice explicitly if you want to: https://stripe.com/docs/api/invoices/finalize
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
if the invoice comes from a connected account, i'm guessing i would need to add the header?
i tried the finalize but instead of putting the state to paid it is now in open
Yep, that's right
oh and then i have to to the pay api option for the next step correct?
If the invoice requires manual payment yes, should be necessary when using charge_automaticallythough
i see, i was missing that field. i will try that
ok so if i am using autocharge customer and use charge_automatically, and do the finalyze option. Should the invoice status be paid or open still?
Are you creating these via API or dashboard?
api
If these are API created, and you want them to pay automatically you also need to specify auto_advance=true (eg, when you finalize)
ah ok
https://stripe.com/docs/invoicing/integration/automatic-advancement-collection
Unless you explicitly disable it, invoices you create in the Dashboard ​automatically finalize when they leave the draft state. Invoices you create with the API, however, ​​won’t automatically finalize. You must turn on automatic collection by setting the auto_advance property on the invoice to true.
i am making it from api and looking in the dashboard
even with the auto advance on my finalize, it is still on open
i have it on both the creation of my invoice AND my finalize
Which invoice id?
in_1N48xPR3ylUYYiIEieuLlGEj
it's like the intent is not automatically triggered as i mentioned at the beginning
all i want is that when i create my invoice, the payment is made directly. It shouldn't be so hard
You do at least need to finalize the draft, that's the indication that invoice is ready to be paid. You've done that here, and using auto advance as you have, and a customer that has a saved default invoice payment method, this should get paid as you expect.
We're (me and @obtuse oar ) still looking
ok thank you. If i have done all the steps i don't understand why it's not payed. The only thing i see is that the payment inetnt doesnt have a his confirmation to true
I was able to confirm that this is an expected behavior. The invoice got paid an hour after it was finalized, https://dashboard.stripe.com/test/invoices/in_1N48xPR3ylUYYiIEieuLlGEj.