#ChibiDragoon

1 messages · Page 1 of 1 (latest)

quasi oasisBOT
ripe abyss
#

I'm not sure what you mean by this. Can you try explain with an example, or another way?

drifting breach
#

ok

ripe abyss
#

create an invoice to modify the payment intent

drifting breach
#

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?

ripe abyss
#

What do you mean by manually review?

drifting breach
ripe abyss
#

if you share an invoice ID and/or request ID i can take a look

drifting breach
#

in_1N48WLR3ylUYYiIEvhYEnurF

ripe abyss
#

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.

drifting breach
#

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

ripe abyss
drifting breach
#

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

ripe abyss
#

Yep, that's right

drifting breach
#

oh and then i have to to the pay api option for the next step correct?

ripe abyss
#

If the invoice requires manual payment yes, should be necessary when using charge_automaticallythough

drifting breach
#

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?

ripe abyss
#

Are you creating these via API or dashboard?

drifting breach
#

api

ripe abyss
#

If these are API created, and you want them to pay automatically you also need to specify auto_advance=true (eg, when you finalize)

drifting breach
#

ah ok

ripe abyss
#

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.

drifting breach
#

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

ripe abyss
#

Which invoice id?

drifting breach
#

in_1N48xPR3ylUYYiIEieuLlGEj

#

it's like the intent is not automatically triggered as i mentioned at the beginning

quasi oasisBOT
drifting breach
#

all i want is that when i create my invoice, the payment is made directly. It shouldn't be so hard

ripe abyss
#

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

drifting breach
#

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

obtuse oar