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


Top ↑

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;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.