/**
* Default payment instrument validation.
*
- * Implement the usual Luhn algorithm via a static function in the CRM_Core_Payment_Form if it's a credit card
- * Not a static function, because I need to check for payment_type.
+ * Payment processors should override this.
*
* @param array $values
* @param array $errors
return TRUE;
}
+ /**
+ * Override default payment instrument validation, as recommended.
+ *
+ * We have nothing to validate here.
+ *
+ * @param array $values
+ * @param array $errors
+ */
+ public function validatePaymentInstrument($values, &$errors): void {}
+
}