Suraj-Tiwari/react-native-payumoney

Not working with real merchant id, key and slat, getting error {"code": 0, "success": false}

Closed this issue · 7 comments

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

how to find key and slat from PayU dashboard ??

Same Error

closing due to inactivity.

@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

make sure to validate your hash with provided hashing function.