Skip to content

Commit e17f7a7

Browse files
committed
Decouple SIMGateway from AIMGateway
1 parent 9f078db commit e17f7a7

File tree

1 file changed

+39
-4
lines changed

1 file changed

+39
-4
lines changed

src/SIMGateway.php

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
namespace Omnipay\AuthorizeNet;
44

5+
use Omnipay\Common\AbstractGateway;
6+
57
/**
68
* Authorize.Net SIM Class
79
*/
8-
class SIMGateway extends AIMGateway
10+
class SIMGateway extends AbstractGateway
911
{
1012
public function getName()
1113
{
@@ -14,10 +16,43 @@ public function getName()
1416

1517
public function getDefaultParameters()
1618
{
17-
$parameters = parent::getDefaultParameters();
18-
$parameters['hashSecret'] = '';
19+
return array(
20+
'apiLoginId' => '',
21+
'transactionKey' => '',
22+
'testMode' => false,
23+
'developerMode' => false,
24+
'hashSecret' => ''
25+
);
26+
}
27+
28+
public function getApiLoginId()
29+
{
30+
return $this->getParameter('apiLoginId');
31+
}
32+
33+
public function setApiLoginId($value)
34+
{
35+
return $this->setParameter('apiLoginId', $value);
36+
}
37+
38+
public function getTransactionKey()
39+
{
40+
return $this->getParameter('transactionKey');
41+
}
42+
43+
public function setTransactionKey($value)
44+
{
45+
return $this->setParameter('transactionKey', $value);
46+
}
1947

20-
return $parameters;
48+
public function getDeveloperMode()
49+
{
50+
return $this->getParameter('developerMode');
51+
}
52+
53+
public function setDeveloperMode($value)
54+
{
55+
return $this->setParameter('developerMode', $value);
2156
}
2257

2358
public function getHashSecret()

0 commit comments

Comments
 (0)