#nickdnk-Invoice-statement-descriptor
1 messages ยท Page 1 of 1 (latest)
A placeholder value in the statement descriptor would be super cool. Like "MYBUSINESS-%INVOICE_NUMBER%" automatically became MYBUSINESS-DI2AD-0001 etc
@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?
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
And no, I cannot change it after the invoice is finalized
why? What error do you get?
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
I know we freeze some properties on finalization but I'm not sure we freeze statement_descriptor
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 ๐ฆ
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
makes sense, I filed already so I'll keep you posted but I don't think it'll happen, at least not soon unfortunately
Makes sense
I would hope