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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | pay-1008366.patch | 630 bytes | javi-er |
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | pay-1008366.patch | 630 bytes | javi-er |
Comments
Comment #1
javi-er commentedComment #2
allie mickaThis 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!