Clean statement descriptor value before saving it #3982
Labels
category: projects
For any issues which are part of any project, including bugs, enhancements, etc.
component: settings
Issues related to Settings
focus: account lifecycle
type: enhancement
The issue is a request for an enhancement.
Description
This is a follow-up issue that came out of this discussion. We should consider to clean the statement descriptor values before saving them in the settings. That would increase confidence that the data would not make the intents fail and we would not have to clean every time we send them.
Acceptance criteria
Dev notes
See this Stripe's method as a reference – it should not be entirely copied because it probably doesn't match our needs.
Currently the validation is accepting values like " testing" without errors. In cases like that, we can either make the validation stricter – ideally it would be as strict as it requires, like not accepting any spaces – or trimming it before saving it, which I'd not recommend because that would require us to reflect that change in the UI.
The text was updated successfully, but these errors were encountered: