Update with the API in the main project
This commit is contained in:
@ -9,7 +9,7 @@ class PurchaseRequest extends AbstractRequest
|
||||
protected function generateSignature()
|
||||
{
|
||||
return sha1(
|
||||
$this->getTransactionId() . $this->getAmountInteger() . $this->getClientId() . $this->getClientSecret()
|
||||
$this->getTransactionId() . $this->getAmountInteger() . $this->getClientSecret()
|
||||
);
|
||||
}
|
||||
|
||||
@ -23,13 +23,14 @@ class PurchaseRequest extends AbstractRequest
|
||||
|
||||
$data = array(
|
||||
"clientId" => $this->getClientId(),
|
||||
"clientSecret" => $this->getClientSecret(),
|
||||
"transactionId" => $this->getTransactionId(),
|
||||
"amount" => $this->getAmountInteger(),
|
||||
"description" => $this->getDescription(),
|
||||
"returnUrl" => $this->getReturnUrl(),
|
||||
"sha1" => $this->generateSignature()
|
||||
);
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
public function sendData($data)
|
||||
|
Reference in New Issue
Block a user