PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins
/
sf-booking
/
payment-gateway
/
2checkout
/
lib
/
Twocheckout
<?php class Twocheckout_Return extends Twocheckout { public static function check($params=array(), $secretWord) { $hashSecretWord = $secretWord; $hashSid = $params['sid']; $hashTotal = $params['total']; $hashOrder = $params['order_number']; $StringToHash = strtoupper(md5($hashSecretWord . $hashSid . $hashOrder . $hashTotal)); if ($StringToHash != $params['key']) { $result = Twocheckout_Message::message('Fail', 'Hash Mismatch'); } else { $result = Twocheckout_Message::message('Success', 'Hash Matched'); } return Twocheckout_Util::returnResponse($result); } }
[+]
..
[+]
Api
[-] TwocheckoutMessage.php
[edit]
[-] TwocheckoutCharge.php
[edit]
[-] TwocheckoutReturn.php
[edit]
[-] TwocheckoutNotification.php
[edit]