#Danylo Holovin
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
Hi!
how are you integrating with Stripe? are you using Checkout Sessions?
no I mean for one-time payments
No, we do not use Checkout Session for one-time payments either
ok no worries
We wanna use only api
perfect
would you mind sharing the request where you got the error message? here's how you can find one https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
have you previously created the invoice items for that customer?
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
yes
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
you could take a look at this guide https://stripe.com/docs/invoicing/integration/quickstart
I wanna the Invoice to charge automaticle
yes you can still do that
just read the parts about creating the invoice items/invoices
ok
did you manage to create the invoice items/invoice the way you wanted it?
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?
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
customer does
perfect then
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
to pay the invoice and stop waiting
let me know if you need any more help