#Chhay Toch-invoice

1 messages · Page 1 of 1 (latest)

worthy creek
#

I don't think so but let me check something

dusk trellis
#

and the custom_fields is array type or object type?

worthy creek
#

ok to answer the first question, no, there's a hard limit of 4, no way to increase it

#

it's an array of objects

#
custom_fields:[
      {name:"foo", value:"bar"},
      {name:"foo1", value:"bar"},
  ]
dusk trellis
#

Could you help me to check this ReqID: req_iQvJ1mpmHnpxNl

#

I have listened the "invoice.created" event already

worthy creek
#

yep, you can't update the invoice at that point, it's too late.

dusk trellis
#

is there any advise?

worthy creek
#

in that case it's the first invoice of the subscription, so it's finalised immediately, so you can't update it

#

so you should set the custom_fields on the Customer object instead, before creating the subscription

dusk trellis
#

The users will has the custom_fields value differently from each of the invoice.

#

Is it a good way to do it in Customer?

#

one more thing, the customer field may be up to 30 characters

#

Does it mean limit 30 characters?

#

and where can we display customer address in the invoice?

worthy creek
worthy creek
worthy creek
dusk trellis
#

ok boss