I'm using alpha4 version of this module, I'm attaching a small patch for making CCV field to be required.
Not sure if this applies to newer versions as well.

CommentFileSizeAuthor
#1 pay-1008366.patch630 bytesjavi-er

Comments

javi-er’s picture

StatusFileSize
new630 bytes
allie micka’s picture

Status: Active » Needs work

This should be optional. Can you create a setting in $pay_method_gateway:settings_form()?

Also this value should not be required by FAPI because it's not relevant if a) the credit card is a type that doesn't have ccv, or b) a credit card form is presented but not used.

Thus, your patch should include " '#pre_render' => array('pay_element_set_required')," instead of '#required' => TRUE", and the validation code should account for cases where the value should be required.

Thanks!