Hello :blush:
Have mounted the modulate servired 4.0 and have the sha1 complete broadened. The entity is caixa manresa.
Of pelearme a lot parace be that I have averiguado the problem
On the one hand the code ds_signature rescues it of side.
$ds_signature=$_REQUEST['Ds_Signature'];
Does a funtion of difference and if it is different go in.
..............................................................
if ($signature!=$ds_signature)
{
//El proceso no puede ser completado, error de autenticación
$error= $ds_signature.";".$ds_amount.",".$ds_order.",".$ds_merchantcode.",".$ds_currency.",".$ds_transactiontype.",".$ds_merchanturl.",".$seed;
;
................................................................
To mount me a system for visualizar all the variables before , discover that $ds_signature takes the value of algun place and $signature the optiene when realizing
$digest1 = $sha->hash_string($message);
$signature = strtoupper ($sha->hash_to_string( $digest1 ));
To test it different forms there is not way to do that they are equal. And all this correct with the message takes well the variables and estan those that the entity asks.
$sha = new SHA1;
$message = $ds_amount.$ds_order.$ds_merchantcode.$ds_currency.$ds_transactiontype.$ds_merchanturl.$seed;
And before doing a botch like doing an igualacion of values, wanted to know if somebody to had this problem the to solved, if somebody knows of where or as it calculates for his rescue the variable $ds_signature.
thanks