Skip to content

Commit

Permalink
Merge pull request #8 from delatbabel/update-form-parameters
Browse files Browse the repository at this point in the history
Update form parameters
  • Loading branch information
aperdomo authored Jan 23, 2017
2 parents 3ba4535 + 9493b87 commit 4dc978d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions src/ConvergeGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ public function getDefaultParameters()
'merchantId' => '',
'username' => '',
'password' => '',
'ssl_show_form' => false,
'ssl_result_format' => 'ASCII',
);
}

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Message/ConvergeAbstractRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
);
Expand Down

0 comments on commit 4dc978d

Please sign in to comment.