Reputation: 917
I'm using Stripe's simple 'Checkout', is there a specification detailing the max length of data accepted and returned, eg for the following data:
customer id
description
risk level
address_line1
etc
Upvotes: 39
Views: 14352
Reputation: 263
max length of customer id is 255
max length of description is 350 (may change in future)
Copied from the doc,
You can safely assume object IDs we generate will never exceed 255 characters, but you should be able to handle IDs of up to that length. If for example you’re using MySQL, you should store IDs in a VARCHAR(255) COLLATE utf8_bin
column (the COLLATE configuration ensures case-sensitivity in lookups).
The description field on customer endpoints has a maximum character length limit of 350 now
Upvotes: 17