#keval-mandalik_api

1 messages ¡ Page 1 of 1 (latest)

old kettleBOT
#

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

austere oriole
#

hi there!

crystal dawn
#

hello

austere oriole
#

correct, the receipt won't contain the line items.

#

if you need the line items, maybe you should create an Invoice directly?

crystal dawn
#

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

austere oriole
#

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.

crystal dawn
#

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

austere oriole
crystal dawn
#

will check and let you know