Not working with real merchant id, key and slat, getting error {"code": 0, "success": false}
Closed this issue · 7 comments
master-css commented
my real merchant id, key and slat was not working, it's show me error like {"code": 0, "success": false}
but when i use with test it's work perfectly
Please help me for this issue
Suraj-Tiwari commented
I've tested with prod & dev credentials, it's working perfectly. Make sure
your hash generation is right.
…On Sun, 4 Jul, 2021, 3:53 pm master-css, ***@***.***> wrote:
my real merchant id, key and slat was not working, it's show me error like *{"code":
0, "success": false}*
but when i use with test it's work perfectly
Please help me for this issue
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#57>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFJOPOXUUA57CWHIGATYBVTTWAZDFANCNFSM47ZBUTEA>
.
master-css commented
how to find key and slat from PayU dashboard ??
metizror commented
Same Error
Suraj-Tiwari commented
I can't help until i can regenerate the error. The creeds i have are
working perfectly. Please make a private repo with bug and give me access
@Suraj-Tiwari
…On Sat, 10 Jul, 2021, 4:15 pm Metizsoft Solutions Private Limited, < ***@***.***> wrote:
Same Error
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#57 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFJOPOQJNQTR63DVZGRAQKDTXAQF5ANCNFSM47ZBUTEA>
.
Suraj-Tiwari commented
closing due to inactivity.
swaroopaillinda commented
@Suraj-Tiwari I am alos getting same error
my hash generation in server side is as follows :
`
var pd = req.body;
pd.txnid=`PAYU${Date.now()}`
var hashString = process.env.PAYU_KEY // Merchant Key
+ '|' + pd.txnid
+ '|' + pd.amount + '|' + pd.productinfo + '|'
+ pd.firstname + '|' + pd.email + '|'
+ '||||||||||'
+ process.env.PAYU_SALT // Your salt value
var sha = new jsSHA('SHA-512', "TEXT");
sha.update(hashString)
var hash = sha.getHash("HEX");
the test credentials are working fine but these are not working
Suraj-Tiwari commented
make sure to validate your hash with provided hashing function.