payu-intrepos / PayUMoney-IOS-SDK

Easy to integrate SDK for iOS to facilitate fast mobile checkout
https://www.payumoney.com/
MIT License
11 stars 21 forks source link

Hash mismatch error #6

Closed hemanth2k13 closed 6 years ago

hemanth2k13 commented 7 years ago

Hi I'm using test key, salt found in sample app and setting type to test and using { let hashSequence : NSString = "(params.key!)|(params.txnid!)|(params.amount!)|(params.productinfo!)|(params.firstname!)|(params.email!)|||||||||||(self.salt)" as NSString let data :NSString = utils.createSHA512(hashSequence as String!) as NSString params.hashValue = data as String! startPaymentFlow() } to generate hash. But i get hash mismatch error.

the hashSequence is printed like this

40747T|CFS2771911|14373.85|CFSProduct|hemanth|hemanth@gmail.com|||||||||||eCwWELxi

Am i doing anything wrong?

iOSamit commented 7 years ago

@hemanth2k13 you got solution?

NitheeshU commented 7 years ago

am too getting this error pls reply

DishaMukherjee commented 6 years ago

Hi All,

Kindly integrate with below link: https://github.com/payu-intrepos/PayUMoney-IOS-SDK/tree/master/PlugNPlay/Objective-C%20SampleApp

The hash sequence should be hashSequence = key|txnid|amount|productinfo|firstname|email|udf1|udf2|udf3|udf4|udf5||||||salt. $hash = hash("sha512", $hashSequence);

ishteyaque06 commented 3 years ago

I am getting same issue, even I am using server hash response. The server hash response is working fine with Android, but not in ios.

shadabkhan1988 commented 3 years ago

Hi,

Kindly drop your queries on mobile.integration@payu.in

Also share the below details

1)PayU SDK version 2) Hash string 3) Error screenshot 4) Merchant key