Checksum Failed to get error

I am trying to integrate a payy payment gateway, and I have included all the required fields, but it showed me an error after redirecting to the official payu website.

Error. We are sorry we are unable to process your payment.
Checksum Failed. Please contact your merchant.

I have included the following fields:

<input type="hidden" name="key" value="key here" />
<input type="hidden" name="txnid" value="67c778f0eed" />
<input type="hidden" name="hash" value="sdfdsfsdfsdfgsdrgsdf"/>
<input type="hidden" class="user2" name="firstname" value="sunil">
<input type="hidden" name="surl" value="abc.com" size="64" />
<input type="hidden" name="furl" value="abc.com" size="64" /></td>
<input type="hidden" name="service_provider" value="payu_paisa" size="64" /> 
<input id="pay_amoumt" type="hidden" name="amount" value="10">
<input id="pay_amoumt" type="hidden" name="productinfo" value="general">

I assigned a static string for the hash key. This is problem? Or is there something else I should do?

+4
source share
4 answers

Your checksum is not an exact control variable, which is required. The formula for the checksum before the transaction:

sha512 (key|txnid|amount|productinfo|firstname|email|udf1|udf2|udf3|udf4|udf5||||||<SALT>)

SALT will be provided by Payumoney. The algorithm used is SHA2, which is a well-known global algorithm. Use Google to find the right feature library for your implementation. The following is an example code example:

PHP:

$output = hash("sha512", $text);

http://softbuiltsolutions.com/uploads/readme/sZuRrXnkRVQXqv47f3hgy4LCmekcry-1443511890.pdf

+4

POST

"key" "txnid" "amount" "productinfo" "firstname" "email" "phone" "surl" "furl" "hash" "service_provider"

.

+1

, , , , . , , , 10.00. .

+1

.

, checksum failed, Payumoney.

0

Source: https://habr.com/ru/post/1598188/


All Articles