#crank_api
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1357578182374461531
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! Can you share more about your use case? Typically if you want invoices, you would create an Invoice instead of a PaymentIntent.
our users make a purchase
2 types
- Subscription - everything is fine here, the invoice is created by itself
- One-time purchase using payment intent, now it is necessary to issue the user an invoice for a one-time purchase, I do not understand how to do this, and I did not find a way in the documentation
Does this work for you - https://docs.stripe.com/invoicing/integration?method=elements? In this guide, it shows how you can create an Invoice, and the customer makes payment using the Payment Element which is initalized from the Invoice's PaymentIntent
not quite suitable because the user has already made a payment by creating an invoice separately suggests a repeat payment in my case
What I originally meant is that in the future, instead of creating a PaymentIntent, you should create an Invoice.
To answer your question, if you’re dealing with an already paid PaymentIntent, the best approach is to create an Invoice and then mark it as paid out of band. You should also update both the Invoice and PaymentIntent with metadata that references the IDs of the other object.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.