Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

Commit

Permalink
Updated to be compatible with new API URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmauzyk committed Feb 12, 2020
1 parent 8a38d14 commit 0c70d05
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 26 deletions.
5 changes: 0 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,5 @@
},
"require-dev": {
"omnipay/tests": "~3.0"
},
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
}
}
11 changes: 1 addition & 10 deletions src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ public function getApiHost()
return $this->getParameter('apiHost');
}

public function getApiPort()
{
return $this->getParameter('apiPort');
}

public function getApiUsername()
{
return $this->getParameter('apiUsername');
Expand Down Expand Up @@ -56,14 +51,11 @@ public function setApiUsername($value)
{
return $this->setParameter('apiUsername', $value);
}

public function setApiHost($value)
{
return $this->setParameter('apiHost', $value);
}
public function setApiPort($value)
{
return $this->setParameter('apiPort', $value);
}

public function setApiPassword($value)
{
Expand All @@ -83,7 +75,6 @@ public function getDefaultParameters()
$params = [
'merchantId' => '',
'apiHost' => '',
'apiPort' => '',
'apiUsername' => '',
'apiPassword' => '',
'testMode' => false
Expand Down
14 changes: 3 additions & 11 deletions src/Message/AbstractRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

abstract class AbstractRequest extends \Omnipay\Common\Message\AbstractRequest
{
protected $testEndpoint = 'https://fts.cardconnect.com:6443/cardconnect/rest';
protected $testEndpoint = 'https://fts-uat.cardconnect.com/cardconnect/rest';

// Getters
// =========================================================================
Expand All @@ -21,11 +21,6 @@ public function getApiHost()
return $this->getParameter('apiHost');
}

public function getApiPort()
{
return $this->getParameter('apiPort');
}

public function getApiUsername()
{
return $this->getParameter('apiUsername');
Expand Down Expand Up @@ -53,14 +48,11 @@ public function setApiUsername($value)
{
return $this->setParameter('apiUsername', $value);
}

public function setApiHost($value)
{
return $this->setParameter('apiHost', $value);
}
public function setApiPort($value)
{
return $this->setParameter('apiPort', $value);
}

public function setApiPassword($value)
{
Expand All @@ -74,7 +66,7 @@ public function setTestMode($value)

protected function liveEndpoint()
{
return 'https://'.$this->getApiHost().':'.$this->getApiPort().'/cardconnect/rest';
return 'https://'.$this->getApiHost().'/cardconnect/rest';
}

// Public Functions
Expand Down

0 comments on commit 0c70d05

Please sign in to comment.