Hash Generation
Every transaction (payment or non-payment) needs a hash by the merchant before sending the transaction details to PayU. This is required for PayU to validate the authenticity of the transaction.
Hash should always be calculated at your server.

Payment Hash

Hash required to make payment.
1
sha512(key|txnid|amount|productinfo|firstname|email|udf1|udf2|udf3|udf4|udf5||||||salt)
Copied!
Code samples to generate hash are present here - JAVA,PHP.

For SI Payment

When doing Recurring(SI) transaction, Payment hash need to be calculated as mentioned here

WebService Hash

To call any PayU API, you need to generate hash from your server using following pattern :
1
sha512(key|command|var1|salt)
2
where
3
key=YOUR KEY
4
command=Api Commands
5
salt= YOUR SALT
6
var1= default(if you want stored cards use var1 as user_credentials else default)
Copied!
Last modified 8mo ago