Files
roi-theme/wp-content/plugins/restrict-content-pro/pro/includes/libraries/twocheckout/Twocheckout/TwocheckoutNotification.php
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

21 lines
673 B
PHP

<?php
class Twocheckout_Notification extends Twocheckout
{
public static function check($insMessage=array(), $secretWord)
{
$hashSid = $insMessage['vendor_id'];
$hashOrder = $insMessage['sale_id'];
$hashInvoice = $insMessage['invoice_id'];
$StringToHash = strtoupper(md5($hashOrder . $hashSid . $hashInvoice . $secretWord));
if ($StringToHash != $insMessage['md5_hash']) {
$result = Twocheckout_Message::message('Fail', 'Hash Mismatch');
} else {
$result = Twocheckout_Message::message('Success', 'Hash Matched');
}
return Twocheckout_Util::returnResponse($result);
}
}