Finialized plugin
This commit is contained in:
@ -4,11 +4,11 @@ namespace Omnipay\Inforbank\Message;
|
||||
|
||||
class PurchaseRequest extends AbstractRequest
|
||||
{
|
||||
protected $endpoint = "http://localhost:8080/api/transactionRequest";
|
||||
protected $endpoint = "http://sgni.nl/~113004/index.php/api/transactionRequest";
|
||||
|
||||
protected function generateSignature()
|
||||
{
|
||||
return sha1(
|
||||
return hash("sha256",
|
||||
$this->getTransactionId() . $this->getAmountInteger() . $this->getClientSecret()
|
||||
);
|
||||
}
|
||||
@ -27,7 +27,7 @@ class PurchaseRequest extends AbstractRequest
|
||||
"amount" => $this->getAmountInteger(),
|
||||
"description" => $this->getDescription(),
|
||||
"returnUrl" => $this->getReturnUrl(),
|
||||
"sha1" => $this->generateSignature()
|
||||
"hash" => $this->generateSignature()
|
||||
);
|
||||
|
||||
return $data;
|
||||
|
Reference in New Issue
Block a user