Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...