#brot1n
1 messages ยท Page 1 of 1 (latest)
Hi ๐
I'm guessing this is something you would like to configure at the Customer level (if possible).
But...you want this rendered in the Address block of the Invoice.
๐ค
Have you tried creating a multi-line name?
yup, at the end of the day I am required to explicitely name the company through which the customer has done their purchase
Like MegaCorp Inc.\c\rMike Meyes
oh that works? I kinda just figured multiline Strings arent allowed. I will check
I just tested this myself. The Customer object has the following property: "name": "Mega Corp Inc\nMike Meyes",
But when I print it I see
print(cust.name)
Mega Corp Inc
Mike Meyes
There's a typo because I was rushing but I think you get the idea ๐
Hm the pdf generation does not seem to respect that tho. i used \n
(Ignore the 2nd "Mega Corp")
Try with \c\r. That is what our API returned when I passed in a """ multi-line string in Python
Even worse haha
Blast!
Follow up, and I would test this myself if I weren't juggling some other threads
But where do these custom fields get rendered for the invoice? https://stripe.com/docs/api/customers/create#create_customer-invoice_settings-custom_fields-name
On the top left of the invoice unfortunately, right below due by etc
Drat. Unfortunately I think your address approach is the best one we have at the moment. I raise this as a feature request for our Invoices team though
Ah bummer, but understandable. yea I would believe the requirement of listing a customers company atop the adress exists for many users. Thanks anyway! have a nice day:)