stripe-android icon indicating copy to clipboard operation
stripe-android copied to clipboard

[Feature] make 'setPostalCode' on 'CardInputWidget' public

Open john-mejia opened this issue 4 years ago • 0 comments

Is your feature request related to a problem? Please describe. We use the setter methods on CardInputWidget for testing purposes. After requiring a postal code in our application we can no longer write a test to confirm a car is valid. A potential solution is reaching into the view hierarchy and manipulating the TextInputLayout directly but it feels odd that this is the only API that is not exposed.

Describe the solution you'd like Expose setPostalCode similarly to setCardNumber, setCvcCode, setExpiryDate, and setCardNumber

Describe alternatives you've considered Reaching into the view hierarchy and manipulating the TextInputLayout directly but it feels odd that this is the only API that is not exposed.

Additional context We programmatically set each field and test card validity on each step of user input.

john-mejia avatar Apr 22 '21 16:04 john-mejia