#Credit Card Components suddenly allow whitespace cardholder

1 messages · Page 1 of 1 (latest)

marble heron
#

hi
my cypress tests figured out that a simple whitespace as cardholder name doesnt lead to an error anymore in the components? is this on purpose, should i change my test or is this a bug?

mental summit
#

@west parcel

marble heron
#

The constraints on components was changed recently, so this might be a sideeffect of this.

marble heron
#

ok thanks , will it come back? should i activate the test again or is it gone now?

west parcel
#

Hi Christian
We have indeed released some enhancements to the CC components field in order to optimise cards performance. A simple whitespace or a series of numbers only are no longer allowed.

marble heron
#

thats funny @west parcel
because my cypress test was originally testing that whitespaces are NOT allowed
now it IS allowed. i manually checked it. if i just leave the card holder name, it works

west parcel
#

Oh interesting find. Let me get back to you on this. Looking into it now/

#

@marble heron i am currently testing it and i get an FE validation error with whitespace. Are you entering whitespaces or leaving the field blank altogether?

marble heron
#

that test failed, and when i tested it manually i was able to reach the mollie payment page

west parcel
#

Ah i see. Ok so what we did was to add additional Front-end validation in components so that a user does not go all the way to submitting their card details only to be told from the backend that their details are not valid (in this case that the Cardholder cannot be empty). So now the check happens in the frontend as well. So i think the test should now assert on Components error. assertComponentErrors(false, true, true, true); (i think although i am no proficient with Cypress.

marble heron
#

but the problem is that an empty cardholder name with whitespace is valid from your JS compnents and brought me to the payment page

#

that is the actual problem,

#

let me just run it again and see if its still happening

west parcel
#

Could you take me through the steps on how you are able to reproduce it manually please? I have tried on multiple orgs in both test and live and I am not ever able to submit a card form with an empty space in the card holder name. Having the repro steps will ensure i am mirroring the same situation as yours.

marble heron
#

its working again, so now i get a successful (and different) message
when i wrote this issue, cypress and my manual test showed it was redirected to the mollie payge

#

i also see that theres a min 3 letters now? thats probably what you meant by extending verification...
so seems good now, maybe small hicups (i usually know quite fast if sth has deployed at the mollie side that changes things :D)

west parcel
#

My apologies about this. We should have posted this forum indeed. We will make sure to be more diligent in the future. Let me know if you see any other issues with this validations. Thanks!