/**
  * Create name value pairs
  *
  * @return array
  */
 private function createHeaderNameValuePairs()
 {
     $nameValuePairs = array(self::$SPH_ACCOUNT => $this->account, self::$SPH_MERCHANT => $this->merchant, self::$SPH_TIMESTAMP => PaymentHighwayUtility::getDate(), self::$SPH_REQUEST_ID => PaymentHighwayUtility::createRequestId(), self::$SPH_API_VERSION => $this->apiversion);
     return $nameValuePairs;
 }
 /**
  * @return array
  */
 private function createFormParameterArray()
 {
     $parameterArray = array(self::$SPH_SUCCESS_URL => $this->successUrl, self::$SPH_FAILURE_URL => $this->failureUrl, self::$SPH_CANCEL_URL => $this->cancelUrl, self::$SPH_ACCOUNT => $this->account, self::$SPH_MERCHANT => $this->merchant, self::$SPH_TIMESTAMP => PaymentHighwayUtility::getDate(), self::$SPH_REQUEST_ID => PaymentHighwayUtility::createRequestId());
     return $parameterArray;
 }
 /**
  * @test
  */
 public function dateIsFormattedCorrectly()
 {
     $date = PaymentHighwayUtility::getDate();
     $this->assertRegExp('/^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$/', $date);
 }