#luke-w_api

1 messages ¡ Page 1 of 1 (latest)

glad hornetBOT
#

👋 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.

gentle dirge
#

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

glad hornetBOT
covert lynx
#

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 the pi_xxx that it generates

glad hornetBOT
violet leaf
covert lynx
#

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)

violet leaf
covert lynx
#

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

See: https://docs.stripe.com/invoicing/integration

Learn how to create and send an invoice with code.

violet leaf