Skip to content

Commit 92985b2

Browse files
committed
Merge pull request #162 from adrianmacneil/custom-send-data
Custom send data parameters
2 parents e8f257a + 0e681cb commit 92985b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Omnipay/Eway/Message/RapidPurchaseRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ public function getData()
5757
return $data;
5858
}
5959

60-
public function send()
60+
public function sendData($data)
6161
{
62-
$httpResponse = $this->httpClient->post($this->getEndpoint(), null, json_encode($this->getData()))
62+
$httpResponse = $this->httpClient->post($this->getEndpoint(), null, json_encode($data))
6363
->setAuth($this->getApiKey(), $this->getPassword())
6464
->send();
6565

0 commit comments

Comments
 (0)