2

As I need to stop credit card number validation in Magento 2 checkout page. How can I done this? Here is the error displayed in payment form,

enter image description here

Note

Am using Paymetric extension for credit card payment.

2
  • why you need to remove the card validation?
    – Amit Bera
    Commented Dec 10, 2018 at 7:56
  • Am using tokenization, so I don't need card validation Commented Dec 10, 2018 at 9:07

1 Answer 1

0

In paymentric module,vaidation should be happening in model folder,In model you have to find payment.php file and remove parent validation should be happening in validate function, as for your reference I attached code below

 public function validate()
    {
        /*
         * calling parent validate function
         */
//        parent::validate();  // command this parent validation
        return $this;
    }

Note : Ime_Paymetrictokenize module used in my existing products

2
  • I will check and let you know Commented Dec 11, 2018 at 6:50
  • This change working fine for my scenario, Thanks Commented Dec 12, 2018 at 6:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.