You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let commandName = (param[HashConstant.hashName] ?? "")
let hashStringWithoutSalt = (param[HashConstant.hashString] ?? "")
let postSalt = param[HashConstant.postSalt]
// get hash for "commandName" from server
// get hash for "hashStringWithoutSalt" from server
// After fetching hash set its value in below variable "hashValue"
var hashValue = ""
if commandName == HashConstant.mcpLookup {
hashValue = "<hmacsha1 hash for hashStringWithoutSalt and secret>"
} else if let postSalt = postSalt {
let hashString = hashStringWithoutSalt + (saltTextField.text ?? "") + postSalt
hashValue = "<hmacsha512 hash for hashStringWithoutSalt and secret>"
} else {
hashValue = "<hmacsha512 hash for hashStringWithoutSalt and salt>"
}
print("hashValue is :\n\(hashValue) )")
onCompletion([commandName: hashValue])
}
Like got console details is :
generateHash param
["hashString": "{"phone":"9876543210","userToken":"","amount":"1"}|Tue, 09 Jan 2024 04:19:38|", "hashName": "fetch_quick_pay_option"] )
hashValue is :
)
Please provide me solution of this "Invalid Hash."
@dhaval951 You need to append salt and then convert it to SHA512 hash on your server. please connect with [email protected]. And for security reason please delete all the data, you provided in your issue.
on delegate method of PayUCheckoutProDelegate:
-> func onError(_ error: Error?) :
Error Domain=com.payu.PayUCheckoutPro Code=9999 "Invalid Hash." UserInfo={NSLocalizedDescription=Invalid Hash. IOS
in
func generateHash(for param: DictOfString, onCompletion: @escaping PayUHashGenerationCompletion) {
print("generateHash param\n (param) )")
["hashString": "{"phone":"9876543210","userToken":"","amount":"1"}|Tue, 09 Jan 2024 04:19:38|", "hashName": "fetch_quick_pay_option"] )
hashValue is :
)
Please provide me solution of this "Invalid Hash."
@umangarya336 Please help me
The text was updated successfully, but these errors were encountered: