Hello! I am trying to create an elementary payment page through FREE KASSA. I create the view code:

<?php $merchant_id = '33643'; $secret_word = 'uwrejyvi'; $order_id = '154'; $order_amount = '100'; $sign = md5($merchant_id.':'.$order_amount.':'.$secret_word.':'.$order_id); ?> <form method='get' action='http://www.free-kassa.ru/merchant/cash.php'> <input type='hidden' name='m' value='33643'> <input type='hidden' name='oa' value='100'> <input type='hidden' name='o' value='154'> <input type='hidden' name='s' value='<?php $sign?>'> <input type='hidden' name='i' value='94'> <input type='hidden' name='lang' value='ru'> <button type="submit" name='pay' class="btn btn-primary">Перейти к оплате</button> </form> 

But I get a message about the wrong signature. Where do I make a mistake? Thank!

    1 answer 1

    Your mistake is that the signature is simply not inserted into the code. You made a mistake in the following code section:

     <input type='hidden' name='s' value='<?php $sign?>'> 

    This code simply calls the variable sign. To display a variable, use the echo construction.

     <input type='hidden' name='s' value='<?php echo $sign;?>'>