#Rian A-email-length-limit
1 messages ยท Page 1 of 1 (latest)
Hi there ๐ I'm not sure off the top of my head if the email field has a character limit, and if so what that is. Are you hitting an error when trying to use an email longer than 30 characters?
one of our customers is trying to do so.
I just created a customer in my test account with an email address that had 120 characters, didn't run into any problems.
same here.. Interestingl
I'll see if I can find how we managed to get this error...
Message
Invalid string: 20-1327 in...esteed wer; must be at most 30 characters
Level
ERROR
UserId
---
Exception
{
"class": "Stripe\\Exception\\InvalidRequestException",
"message": "Invalid string: 20-1327 in...esteed wer; must be at most 30 characters",
"code": 0,
"file": "/var/www/html/vendor/stripe/stripe-php/lib/Exception/ApiErrorException.php:38",
"trace": [
"/var/www/html/vendor/stripe/stripe-php/lib/Exception/InvalidRequestException.php:35",
"/var/www/html/vendor/stripe/stripe-php/lib/ApiRequestor.php:213",
"/var/www/html/vendor/stripe/stripe-php/lib/ApiRequestor.php:175",
"/var/www/html/vendor/stripe/stripe-php/lib/ApiRequestor.php:560",
"/var/www/html/vendor/stripe/stripe-php/lib/ApiRequestor.php:124",
"/var/www/html/vendor/stripe/stripe-php/lib/ApiOperations/Request.php:78",
"/var/www/html/vendor/stripe/stripe-php/lib/ApiOperations/Update.php:27",
Hm, that is interesting.
its in this bit of laravel code
$organisation->updateStripeCustomer(
$this->setStripeParams($organisation, $request->input('address')),
);
i'll do some debugging on my end.
Im going with the assumption this is expected behaviour. But then I'll have to tell our users whats going on
Looking at that code, are you using Laravel by chance?
I am
Ah, so they're library may also be imposing some limitations, but we're not familiar with the inner workings of their integration.