#Danylo Holovin

1 messages ยท Page 1 of 1 (latest)

stoic wrenBOT
round hound
#

๐Ÿ‘‹ happy to help

karmic adder
#

Hi!

round hound
#

how are you integrating with Stripe? are you using Checkout Sessions?

karmic adder
#

For subscriptions?

#

We arent using Checkout Sessions

round hound
#

no I mean for one-time payments

karmic adder
#

No, we do not use Checkout Session for one-time payments either

round hound
#

ok no worries

karmic adder
#

We wanna use only api

round hound
#

perfect

karmic adder
#

ok

#

one minute

#

req_BDcGrqhurPHLZh

round hound
#

have you previously created the invoice items for that customer?

karmic adder
#

No

#

Should I?

round hound
#

you're creating an invoice with no line_items which means that the invoice is going to be empty

#

that's why it's failing

karmic adder
#

ohhhh

#

I see

#

so I must create an invoice item first?

round hound
#

yes

karmic adder
#

great!

#

it works

#

thanks

round hound
karmic adder
#

I wanna the Invoice to charge automaticle

round hound
#

yes you can still do that

#

just read the parts about creating the invoice items/invoices

karmic adder
#

ok

round hound
#

did you manage to create the invoice items/invoice the way you wanted it?

karmic adder
#

Nearly. I created an invoice and finalized it. But it's in incomplete status because "The customer hasn't attempted to pay this invoice yet."
Is it possible to charge an invoice without waiting for the customer attempt? Or how can I test it?

round hound
#

actually after finalizing the invoice we'd wait 1h before trying to pay it

#

if the customer does already have a payment method saved then you can call the pay API on the invoice to stop waiting for the 1h delay we normally do

karmic adder
#

customer does

round hound
#

perfect then

#

to pay the invoice and stop waiting

karmic adder
#

thats cool

#

thank you

#

It finally works the way I want it to

round hound
#

let me know if you need any more help