Answer the question
In order to leave comments, you need to log in
How can I form a free kassa request without the sign field in php?
Hello, please help, tell me how you can create a free kassa forum so that customers enter the amount for any amount and not a specific one, here is the free kassa code
<?php
$merchant_id = '7012';
$secret_word = 'secret';
$order_id = '154';
$order_amount = '100.11';
$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='<?php=$merchant_id?>'>
<input type='hidden' name='oa' value='<?php=$order_amount?>'>
<input type='hidden' name='o' value='<?php=$order_id?>'>
<input type='hidden' name='s' value='<?php=$sign?>'>
<input type='hidden' name='i' value='1'>
<input type='hidden' name='lang' value='ru'>
<input type='hidden' name='us_login' value='<?php=$user['login']?>'>
<input type='submit' name='pay' value='Оплатить'>
</form>
Answer the question
In order to leave comments, you need to log in
Obviously, to form $sign
on the server and then redirect the user to the payment gate with a valid value.
The main thing - do not try to form a request signature on the frontend - give the attacker a secret word.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question