#jhahspu_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1249645861961601084
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
hi, I forgot to mention that i'm using golang...
It can be turned on in the Dashboard settings - see screenshot.
Or, if you use Stripe Checkout, there's a post-purchase invoice: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-invoice_creation-enabled
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
hi @tarzan I'm doing a self-hosted checkout with stripe and golang... i'm in the webhook, trying to generate a stripe invoice if the payment intent is successful.
that's not possible unfortunately
if that's your aim it's better to start by creating the invoice
and on confirmation you can send the invoice.invoice_pdf to the customer https://docs.stripe.com/api/invoices/object#invoice_object-invoice_pdf
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
trying to figure this out in my mind. 1st possibility is stripe-hosted checkout, which will create receipt and invoice if configured correctly. 2nd possibility is to create invoice, send to customer, hope that he/she pays... 3rd do the payment intent way then create invoice somehow (not stripe)
you can also use quotes https://docs.stripe.com/quotes
all 4 options are valid
it really depends on how you want your flow to look like
well, i've been told that it should be easy... not sure about the easy part ๐
the easiest would be to use Checkout Sessions
easiest for this case, where the company doesn't have an erp system to do the invoicing...
right, thank you, don't want to hold you up. I'll think about this a bit more, probably go for the stripe-hosted checkout.
sure let me know if you need any more help