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


Am using Paymetric extension for credit card payment.

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

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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