WC_Payment_Token_ECheck::validate()
Validate eCheck payment tokens.
Description Description
These fields are required by all eCheck payment tokens: last4 – string Last 4 digits of the check
Return Return
(boolean) True if the passed data is valid
Source Source
File: includes/payment-tokens/class-wc-payment-token-echeck.php
public function validate() { if ( false === parent::validate() ) { return false; } if ( ! $this->get_last4( 'edit' ) ) { return false; } return true; }
Changelog Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |