public function generateDefaults( $secret ) {

		//generate timestamp if not set
		if ( is_null( $this->timeStamp ) ) {
			$this->timeStamp = GenerationUtils::generateTimestamp();
		}

		//generate order ID if not set
		if ( is_null( $this->orderId ) ) {
			$this->orderId = GenerationUtils::generateOrderId();
		}

		//generate hash
		$this->hash( $secret );

		return $this;
	}
public function generateDefaults( $secret ) {

		//generate timestamp if not set
		if ( is_null( $this->timeStamp ) ) {
			$this->timeStamp = GenerationUtils::generateTimestamp();
		}

		//generate order ID if not set
		if ( is_null( $this->orderId ) ) {
			$this->orderId = GenerationUtils::generateOrderId();
		}

		//generate hash
		$this->hash( $secret );

		return $this;
	}
public function generateDefaults ( $ secret ) { //generate timestamp if not set if ( is_null ( $ this -> timeStamp ) ) { $ this -> timeStamp = GenerationUtils :: generateTimestamp ( ) ; } //generate order ID if not set if ( is_null ( $ this -> orderId ) ) { $ this -> orderId = GenerationUtils :: generateOrderId ( ) ; } //generate hash $ this -> hash ( $ secret ) ; return $ this ; }
Generates default values for fields such as hash, timestamp and order ID.

@param String $secret

@return HppRequest
Generates default values for fields such as hash timestamp and order ID .