diff --git a/src/ConvergeGateway.php b/src/ConvergeGateway.php index edd25d0..91076bb 100644 --- a/src/ConvergeGateway.php +++ b/src/ConvergeGateway.php @@ -117,6 +117,8 @@ public function getDefaultParameters() 'merchantId' => '', 'username' => '', 'password' => '', + 'ssl_show_form' => false, + 'ssl_result_format' => 'ASCII', ); } @@ -183,6 +185,26 @@ public function setPassword($value) return $this->setParameter('password', $value); } + public function getSslShowForm() + { + return $this->getParameter('ssl_show_form'); + } + + public function setSslShowForm($value) + { + return $this->setParameter('ssl_show_form', $value); + } + + public function getSslResultFormat() + { + return $this->getParameter('ssl_result_format'); + } + + public function setSslResultFormat($value) + { + return $this->setParameter('ssl_result_format', $value); + } + /** * @param array $parameters * @return \Omnipay\Elavon\Message\ConvergeAuthorizeRequest diff --git a/src/Message/ConvergeAbstractRequest.php b/src/Message/ConvergeAbstractRequest.php index d56c289..2d9cdb8 100644 --- a/src/Message/ConvergeAbstractRequest.php +++ b/src/Message/ConvergeAbstractRequest.php @@ -325,7 +325,7 @@ protected function getBaseData() 'ssl_user_id' => $this->getUsername(), 'ssl_pin' => $this->getPassword(), 'ssl_test_mode' => ($this->getTestMode()) ? 'true' : 'false', - 'ssl_show_form' => $this->getSslShowForm(), + 'ssl_show_form' => ($this->getSslShowForm() && ($this->getSslShowForm() != 'false')) ? 'true' : 'false', 'ssl_result_format' => $this->getSslResultFormat(), 'ssl_invoice_number' => $this->getSslInvoiceNumber(), );