#cobra_florianw
1 messages · Page 1 of 1 (latest)
Good question, checking in to this and will get back to you.
What additional info do you want to provide? How much text is it exactly?
The additional information are saved in the description, will be the name of an event (max. length of 100) as well as the starting date of it.
Oh then you can just set the description here: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-invoice_creation-invoice_data-description
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I have already set this one, it's for the Description of the Invoice. What i want is to have the description of the product for each line item
First image is of an invoice, second is a quote.
I want to achive that behaviour for invoices, if possible.
Oh I think that's the product description
So if you define products inline you'd set it here: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price_data-product_data-description
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
For the line items we are using price and quantity in the SessionLineItemOptions, since the Products are created beforehand. For the checkout session itself the Description is not the problem, it will be displayed there. The only part where it's missing is the invoice.
You're saying the product's description shows on the session but not on the created invoice?
Exactly
We create the invoice with the checkout session via SessionInvoiceCreationOptions. What i haven't tried yet is separating the checkout and the invoice creation e.g. create it after an event was received.
Oh hm. Can you share the checkout session id and invoice id?
Created a new one:
Checkout session: cs_test_a1vbhxyeAP8IEfguJCrVKyuR37TULy2TRF2bMf5lgpDdoQgk009Gb58AbP
Invoice:
in_1OZcFcI31dSzhF1780dmB4mP
Hello! I'm taking over and catching up...
As far as I know Product descriptions won't be displayed on Invoices, only Product names will show up, which is what I'm seeing on this Invoice.
Yes, I've noticed that too after testing today.
Is there any way they can be displayed, or is it just not possible at the moment?
Wouldn't like it to just put everything into the name just for it to be displayed. Feels wrong.
I don't believe it's possible, you would need to get the information you want into the Product's name, or you would need to add it elsewhere on the Invoice.
Any plans on adding such a functionality in the near future? If not, not a big deal. Will just tell our PO that this is the situation at the moment.
I know it's a feature request we're tracking internally, but I don't know when it might be implemented. I wouldn't recommend waiting for it; you should figure out a workaround that suits your needs.
Alright, gonna pass that on then.
Thanks a lot for the help!