1
0

Update with the API in the main project

This commit is contained in:
2017-02-19 12:02:56 +01:00
parent ea96709cec
commit 8ea09dde35
6 changed files with 17 additions and 13 deletions

View File

@ -9,7 +9,7 @@ class CompletePurchaseRequest extends AbstractRequest
protected function generateSignature()
{
return sha1(
$this->getTransactionReference() . $this->getClientId() . $this->getClientSecret()
$this->getTransactionReference() . $this->getClientSecret()
);
}
@ -20,14 +20,13 @@ class CompletePurchaseRequest extends AbstractRequest
public function getData()
{
$this->validate('merchantId', 'merchantKey');
$data = array(
"clientId" => $this->getClientId(),
"clientSecret" => $this->getClientSecret(),
"transactionId" => $this->getTransactionReference(),
"sha1" => $this->generateSignature()
);
return $data;
}
public function sendData($data)