Update with the API in the main project
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user