- ksort: documentation ( source)
- md5: documentation ( source)
<?php
$params = array(
'language' => $_GET['language'],
'shop_id' => $_GET['shop_id'],
'timestamp' => $_GET['timestamp'],
'token' => $_GET['token'] // in between token
);
ksort($params);
$signature = '';
foreach ($params as $key => $value)
{
$signature .= $key.'='.$value;
}
$signature = md5($signature.APP_SECRET);