#Chhay Toch - Custom invoice

1 messages · Page 1 of 1 (latest)

mental ivy
#

👋 Thanks for reaching out
It should be displayed in the PDF,
Could you please share an invoiceId ?

leaden valve
#

Here "in_1LcnXEFR9tqGT3lrBoQNY5JL"

mental ivy
#

Thanks, I'm checking...

mental ivy
#

So the invoice was created at 2022-08-31 09:48:36 +0000
and the update of the customer's custom_fieldswas made after, at 2022-08-31 09:48:37 +0000
You need to create another test invoice in order to see the new fields in the pdf

leaden valve
#

hi

#

how do you mean by create another test invoice?

#

when stripe allow us to test invoice in the development mode?

#

after the first time of the customer subscription, they would receive the invoice PDF via the email, right?

#

so those custom_fields will include in the invoice?

mental ivy
#

Actually the issue, is that the update of the customer with the custom_fields was made 1 second after the invoice creation, that's why that invoice doesn't contain those fields

leaden valve
#

actually, we have a trouble in testing the invoice pdf to have a correct data and format that we want.

junior sun
#

yep so you can't set custom fields on the first invoice of a subscription since it's finalised immediately when you call the API to create a subscription.

leaden valve
#

Let me try first boss

#

thank you so much

#

see you soon