What happened?
When submitting a SetupIntent with an invalid billing_details.name value (e.g. a combined first and last name shorter than 3 characters), the Stripe API response contains a specific validation error message in the network response:
"The name provided in billing_details must have between 3 and 100 alphanumeric characters after all company/corporate suffixes are stripped out."
However, the Stripe SDK only exposes the following generic error message to the client code:
"The payment details you provided are invalid."
This prevents displaying the actual validation reason to the end user, even though the detailed message is returned by the API.
Environment
Framework: Angular Browser: Chrome (latest) OS: Windows 11 Stripe JS SDK SetupIntent flow Error code: payment_method_invalid_parameter Field: billing_details.name
Reproduction
I was not able to create a minimal public reproduction, but this consistently happens when billing_details.name is shorter than 3 characters in a SetupIntent flow.