#vipul_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/1267490014850449530
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
pi_3PhuApHNFJKGneCn0UC0QZqE
actually i am creating invoice and then finlizeing with payment element
Can you share your Elements code please? I think you're initialising the Elements object without the client secret from the intent: https://docs.stripe.com/invoicing/integration?method=elements#add-the-payment-element-to-your-page
i want to use deffered payment method, i want to collect card detail before they do payment, i am using same code for subscription, i am passing client ssecreate from api, i am sharing file for both code.
here i am creating invoice
You can't use deferred payment flow with invoicing API currently
then i need to generate client secrate when i load?
then will it not create too many invoice in stripe if customer is not pay on checkout
https://docs.stripe.com/invoicing/integration?method=elements. -- also does this not show to get clietn secrate from server and after they collect payment
Well you already have one from the finalized invoice. When you finalize the invoice it generates an intent and returns it on the payment_intent field