#srgt_slinky
1 messages · Page 1 of 1 (latest)
Something like this?
hi! I would check the docs : https://stripe.com/docs/payments/account/statement-descriptors#:~:text=Make sure that,OCT MARATHON. .
that code seems inspired by what's documented so if you tested that code and are happy with it, seems fine
This bit in the docs confuses me a little:
If you set the statement descriptor on card charges and don’t set a prefix (shortened descriptor), Stripe truncates the account statement descriptor as needed to set the prefix value. If the account statement descriptor contains fewer than 10 characters, we don’t truncate it.
The account object only holds a "statement_descriptor_prefix" property
Is it the shortened prefix?
Or the full prefix?
AFAIK it's the full prefix but I haven't tested it recently
the actual descriptor used including all truncations will be calculated_statement_descriptor on specific Charge objects https://stripe.com/docs/api/charges/object#charge_object-calculated_statement_descriptor ; you can play around in test mode to see how things get set
That's good to know!
I will just rely on the statement_descriptor_prefix for now
That should already yield better results than not setting a suffix at all
Okay, I can confirm that the statement_descriptor_prefix contains the shortened prefix
Just gave it a spin and played around