/**
  * Generate values for payment.
  * Ensure that post data is setted to request with SagepayAbstractApi::setData()
  *
  * @see SagepayAbstractApi::createRequest()
  * @return array The response from Sage Pay
  */
 public function createRequest()
 {
     $this->data = SagepayCommon::encryptedOrder($this);
     $this->addConfiguredValues();
     $this->checkMandatoryFields();
     $ttl = $this->config->getRequestTimeout();
     $caCert = $this->config->getCaCertPath();
     return SagepayCommon::requestPost($this->_vpsDirectUrl, $this->data, $ttl, $caCert);
 }
 /**
  * Generate values for payment.
  * Ensure that post data is setted to request with SagepayAbstractApi::setData()
  *
  * @see SagepayAbstractApi::createRequest()
  * @uses SagepayCommon::encryptedOrder
  * @return array The response from Sage Pay
  */
 public function createRequest()
 {
     $this->addConfiguredValues();
     return SagepayCommon::encryptedOrder($this);
 }