Skip to content

Commit edda9de

Browse files
committed
Fix default endpoint.
1 parent f8e923b commit edda9de

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Message/AbstractRequest.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
abstract class AbstractRequest extends \Omnipay\Common\Message\AbstractRequest
88
{
9-
protected $endpoint = 'https://gateway.perpetualpayments.com/api/transact.php';
9+
protected $endpoint = 'https://secure.nmi.com/api/transact.php';
1010

1111
public function getUsername()
1212
{
@@ -153,6 +153,11 @@ public function sendData($data)
153153
return $this->response = new DirectPostResponse($this, $httpResponse->getBody());
154154
}
155155

156+
public function setEndpoint($value)
157+
{
158+
return $this->setParameter('endpoint', $value);
159+
}
160+
156161
public function getEndpoint()
157162
{
158163
return $this->endpoint;

0 commit comments

Comments
 (0)