#keval-mandalik_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/1356938340905259141
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- keval-mandalik_api, 30 minutes ago, 25 messages
- keval-mandalik_api, 2 hours ago, 12 messages
hi there!
hello
correct, the receipt won't contain the line items.
if you need the line items, maybe you should create an Invoice directly?
but there is conflict in that too
like we are charging customer silently when they click on pay button on our web page, and in backend we are creating payment intent object with saved payment method like card detail and bank accounts
now I tried to create invoice then it will again gonna create payment intent object with canceled status,
and that payment intent object I have created that we are displaying on our web page as history to user and in there we need to give option to download your paid invoice or receipt that contain list of product line item
this is entire scenario how to handle this
I'm not sure I follow the issue. instead of directly creating a PaymentIntent, create an Invoice to charge the customer. this will automatically create a PaymentIntent for you, and you'll also have an invoice pdf with the line items.
you can learn more about Invoices here: https://docs.stripe.com/invoicing/integration/quickstart
yes this will automatically create payment intent object, but does this method give customer to choose option by which saved method they want to pay the invoice
because as far as i know it will take method that marked as default but from web page we are passing that payment method id to create payment intent, like user have selected this payment method charge them with this method
when you create the Invoice, you can set an existing payment method (if you have one): https://docs.stripe.com/api/invoices/create#create_invoice-default_payment_method
will check and let you know