public static function isCustomerPlanIdValid($postedParam)
	{
		$isCustomerPlanIdEmpty = true;
		$isValidCustomerPlanId = false;

		if(isset($postedParam['customerPlanId'])) {
			$isCustomerPlanIdEmpty = CheckoutApi_Lib_Validator::isEmpty($postedParam['customerPlanId']);
		}

		if(!$isCustomerPlanIdEmpty) {

			$isValidCustomerPlanId = CheckoutApi_Lib_Validator::isString($postedParam['customerPlanId']);
		}

		return !$isCustomerPlanIdEmpty && $isValidCustomerPlanId;
	}
public static function isCustomerPlanIdValid($postedParam)
	{
		$isCustomerPlanIdEmpty = true;
		$isValidCustomerPlanId = false;

		if(isset($postedParam['customerPlanId'])) {
			$isCustomerPlanIdEmpty = CheckoutApi_Lib_Validator::isEmpty($postedParam['customerPlanId']);
		}

		if(!$isCustomerPlanIdEmpty) {

			$isValidCustomerPlanId = CheckoutApi_Lib_Validator::isString($postedParam['customerPlanId']);
		}

		return !$isCustomerPlanIdEmpty && $isValidCustomerPlanId;
	}
public static function isCustomerPlanIdValid ( $ postedParam ) { $ isCustomerPlanIdEmpty = true ; $ isValidCustomerPlanId = false ; if ( isset ( $ postedParam [ 'customerPlanId' ] ) ) { $ isCustomerPlanIdEmpty = CheckoutApi_Lib_Validator :: isEmpty ( $ postedParam [ 'customerPlanId' ] ) ; } if ( ! $ isCustomerPlanIdEmpty ) { $ isValidCustomerPlanId = CheckoutApi_Lib_Validator :: isString ( $ postedParam [ 'customerPlanId' ] ) ; } return ! $ isCustomerPlanIdEmpty && $ isValidCustomerPlanId ; }
A helper method that check customer plan id is set in payload.
@param $param
@return bool
Simple usage:
CheckoutApi_Client_Validation_GW3::isCustomerPlanIdValid($param)
A helper method that check customer plan id is set in payload .