1
0

Finialized plugin

This commit is contained in:
2017-04-02 11:54:34 +02:00
parent 807384620c
commit a0ab203f93
5 changed files with 14 additions and 9 deletions

View File

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