Fix 3DS2 Whitelisting Encoding Issue#10843
Conversation
|
Diffuse output: APK |
|
Looks good, can you write some unit tests for this? |
Not easily unfortunately with where the change is and how the architecture is setup. I think I'd have to make changes to the API in order to write meaningful tests here. |
|
@Twigz what if you added something like to |
I added those three, it's not perfect since it kinda mocks out the real flow a bit too much, but it is better than not having them! Thanks! |
|
Yeah but it covers the updated challengeAction get logic and will break if we accidentally change that logic in the future. Could you add tests for |
|
Looks like there are some lint errors, you can run |
|
Also looks like |
|
@tjclawson-stripe all fixed up! |
Summary
Fixes an issue where we send a whitelisting value, even if no text is present. Some ACSs seem to validate that this value should NOT exist when the whitelisting text is not present.
Motivation
An ACS reported failures when trying to validate challenges that did not contain whitelist text.
Testing
Using the PaymentSheet Example to test cards that did not contain whitelist text to ensure that the field was no longer sent, and then validating that it was still sent when text did exist.