#srgt_slinky

1 messages · Page 1 of 1 (latest)

gentle inletBOT
kindred abyss
#

Something like this?

strange flume
#

that code seems inspired by what's documented so if you tested that code and are happy with it, seems fine

kindred abyss
#

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?

strange flume
#

AFAIK it's the full prefix but I haven't tested it recently

kindred abyss
#

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

gentle inletBOT
kindred abyss
#

Coo, thank you very much!

#

The above code will indeed work as expected and yield the "optimal" results