public static function isMonthValid($card)
	{
		$isValid = false;

		if(isset($card['expiryMonth'])) {

			$isExpiryMonthEmpty = CheckoutApi_Lib_Validator::isEmpty($card['expiryMonth'],false);
			
			if(!$isExpiryMonthEmpty && CheckoutApi_Lib_Validator::isInteger($card['expiryMonth']) && ($card['expiryMonth']  > 0 && $card['expiryMonth'] < 13)) {
				$isValid = true;
			} 
		} 

		return $isValid;
	}
public static function isMonthValid($card)
	{
		$isValid = false;

		if(isset($card['expiryMonth'])) {

			$isExpiryMonthEmpty = CheckoutApi_Lib_Validator::isEmpty($card['expiryMonth'],false);
			
			if(!$isExpiryMonthEmpty && CheckoutApi_Lib_Validator::isInteger($card['expiryMonth']) && ($card['expiryMonth']  > 0 && $card['expiryMonth'] < 13)) {
				$isValid = true;
			} 
		} 

		return $isValid;
	}
public static function isMonthValid ( $ card ) { $ isValid = false ; if ( isset ( $ card [ 'expiryMonth' ] ) ) { $ isExpiryMonthEmpty = CheckoutApi_Lib_Validator :: isEmpty ( $ card [ 'expiryMonth' ] , false ) ; if ( ! $ isExpiryMonthEmpty && CheckoutApi_Lib_Validator :: isInteger ( $ card [ 'expiryMonth' ] ) && ( $ card [ 'expiryMonth' ] > 0 && $ card [ 'expiryMonth' ] < 13 ) ) { $ isValid = true ; } } return $ isValid ; }
A helper method that check if month is properly set in payload card object
@param array $card
@return bool
Simple usage:
CheckoutApi_Client_Validation_GW3::isMonthValid($card)
A helper method that check if month is properly set in payload card object