#nickdnk-Invoice-statement-descriptor

1 messages ยท Page 1 of 1 (latest)

river swan
compact brook
#

A placeholder value in the statement descriptor would be super cool. Like "MYBUSINESS-%INVOICE_NUMBER%" automatically became MYBUSINESS-DI2AD-0001 etc

sterile oxide
#

@compact brook I don't know much about this and I don't believe invoice number is a good thing to put in descriptors honestly, it'll be truncated quickly unless you have a short statement descriptor for your business
But you should be able to finalize the invoice and then update statement_descriptor on it right?

compact brook
#

Fortunately our business name is only three letters, so there's decent space. And no, I cannot change it after the invoice is finalized, and it's not given an invoice number before this.

#

Before 2020-03-02, the draft took an invoice number, meaning I could just grab it there and then finalize

#

So i'm back to some hacky "grab the latest invoice and increment the number by 1" race-condition-prone solution

sterile oxide
#

And no, I cannot change it after the invoice is finalized
why? What error do you get?

compact brook
#

Ehm, something about the invoice being finalized. I also tried modifying the underlying payment intent directly but that also did not work. Let me set up a test.

#

Hold on

sterile oxide
#

I know we freeze some properties on finalization but I'm not sure we freeze statement_descriptor

compact brook
#

req_xmXiDEgsADNgtY

sterile oxide
#

Ack, that sounds like a feature request to me, I don't think there's a reason that can't be changed. Candidly though I can't imagine us changing this unfortunately ๐Ÿ˜ฆ

#

I'll report anyway, but yeah there is no way to do this in that case ๐Ÿ˜ฆ

compact brook
#

Yeah it doesn't seem like there's a good reason before a payment attempt is made

#

Okay, thanks

#

I know it would make accounting of our charges much easier for our customers

sterile oxide
#

makes sense, I filed already so I'll keep you posted but I don't think it'll happen, at least not soon unfortunately

compact brook
#

That's all I can ask

#

๐Ÿ™‚

sterile oxide
#

Makes sense

compact brook
#

I would hope