• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Robokassa library wrong signature

#1
I'm trying to make Robokassa payment at dzintarsshop-kaluga.ru with Robokassa library. There is turned on test-mode, and all data sent by POST method. By sending to pay is all ok, but then on result url signature does not match.
By sending to pay signature made by this:
$this->signature = md5($this->login.":".$this->sum.":".$this->order_id.":".$this->password1);
When i receive data from Robokasa i must compare signatures given from Robokassa $_POST['SignatureValue'] and my signature formed by this way:
$local_signature = md5($sum.":".$order_id.":".$this->password2);
I compare like this in method check_pay:
return (strtoupper($local_signature) == strtoupper($signature));
And it not equal. I sent message to Robokassa support, but they sent me the same signature forming.
I form url to pay like this:
return $this->api_pay_url."MrchLogin=".$this->login
."&OutSum=".$this->sum
."&InvId=".$this->order_id
."&Desc=".$this->description
."&SignatureValue=".$this->signature
."&IncCurrLabel=".$this->currency
."&Culture=".$this->rlanguage;
In library there was one more parameter InCurrLabel, but i removed it from url pay, because IncCurrLabel=PCR, but Robokassa blame on it, without it all ok. What wrong, can someone help me? I would be very gratefull!
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.