#luke-w_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/1251124452096479315
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Hi
First of all I want to mention that you can't generate an invoice from a PaymentIntent using the public APIs. but, there is a private beta feature for this, you can reach out ot Stripe support and double check if your Stripe Account can be onboarded to that private beta feature:
https://support.stripe.com/contact
If we create an invoice manually we end up with 2 invoices
Seems unexpected. FWIW, you can likely just create the Invoice upfront with the items etc and then use/confirm thepi_xxxthat it generates
Thanks. Sorry I mean its automatically creating an invoice rather than one we have any control over
I don't see where the invoice is created 'automatically'. Got an example? That's not something that is supported in a direct Payment Intents integration (like the example request you shared)
Sorry I may be mistaken. I am trying to help my developers out so I'm not 100% on top of whats going on. In a nutshell we want to take payment using the SDK and have a corresponsing line-itemised invoice that gets marked as paid once the payment goes through. Stripe Checkout does this nicely but we can't figure out how to achieve this with the SDK and paymentIntent.
As explained, you can't when using the Payment Intents API directly like you are. Instead, you'd create the invoice first and that will in turn generate the Payment Intent for you. You can then use that intent with the SDK to collect payment details and take payment
Ah that would makes sense. I will run that over to my developers. Thank you