#jscripts00_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/1229549637925601320
đ 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.
- jscripts00_api, 6 days ago, 17 messages
Hi there!
hello!
It's not possible to set a description when calling /finalize or /pay. You'll need to set a description by updating the Invoice separately or when creating the Invoice
and that description is different from the payment description right? like on the payment page
What payment page exactly?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
when a user calls pay, id like that description to have a custom description**, where i map the product names, like i do in the bottom example, but the bottom exmaple uses a payment intent, where i can set description
the Invoice description is different from the PaymentIntent's description, yes. The /payments page in the Dashboard shows PaymentIntent descriptions
and when i do this, ``` const finalizedInvoice = await stripe.invoices.finalizeInvoice(invoice.id);
await stripe.invoices.pay(finalizedInvoice.id);``` is that creating a payment intent, that i can modify to add that description
or is there no payment intent when useing invoice and pay
There is a PaymentIntent when finalizing an invoice as long as that invoice is for a non zero amount
You'll need to retrieve the Invoice's payment_intent and update that PaymentIntent's description
gotcha, and then still call pay with the invoice id?
Yep!
ty!!!