SS 2.3.4
I have payment class
I am validating credit card.
function getPaymentFormRequirements() {
return array(
"js" => "
require('CreditCardNumber');
",
"php" => '
$this->requireField("CreditCardNumber", $data);
',
);
}
I want to disable this though ..if they click change Change Country .. else you'd have to:
step1 input credit card , tick terms / conditions
step2 click change country
Step3 change your country and save
step4: re tick terms / conditions and re input credit card details
step4 : submit
PS: I need to keep the change country as it is because I have differing shipping options, so changing country to a pulldown hasn't worked for me.
If this is not possible i would us jQuery to validate card client side, but for that i'd need 1field I think not 4 inputs.
as i was planning on using this http://www.ihwy.com/Labs/jquery-validate-credit-card-extension.aspx maybe as people say validate on credit card isn't correct?