|
|
|
@ -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)
|
|
|
|
|