我在iOS swift5中对Paytm整数进行整数化
跟随Google链接后,出现此错误。在互联网上进行了搜索,但未提供针对此问题的解决方案。
这是我的回复,我正在使用暂存MID和其他凭据。
请提供解决方案!
<html><head><meta http-equiv='Content-Type' content='text/html;charset=ISO-8859-I'><title>Paytm</title><script type='text/javascript'>function response(){return document.getElementById('response').value;}</script></head><body>Redirect back to the app<br><form name='frm' method='post'><input type='hidden' id='response' name='responseField' value='{"ORDERID":"WvE9q", "MID":"XXXXXXXXXXXXXXXXX210", "TXNAMOUNT":"100.00", "CURRENCY":"INR", "STATUS":"TXN_FAILURE", "RESPCODE":"330", "RESPMSG":"Invalid checksum", "BANKTXNID":""}' /></form></body></html>
PayTmIntegration[2222:92868] response() JS method returned = {"ORDERID":"WvE9q", "MID":"XXXXXXXXXXXXXXXXX210", "TXNAMOUNT":"100.00", "CURRENCY":"INR", "STATUS":"TXN_FAILURE", "RESPCODE":"330", "RESPMSG":"Invalid checksum", "BANKTXNID":""}
呼叫代表didFinishedResponse
{
"RESPMSG" : "Invalid checksum",
"STATUS" : "TXN_FAILURE",
"TXNAMOUNT" : "100.00",
"BANKTXNID" : "",
"MID" : "XXXXXXXXXXXXXXXXX210",
"RESPCODE" : "330",
"CURRENCY" : "INR",
"ORDERID" : "WvE9q"
}
PGTransactionViewController :: viewWillDisappear
答案 0 :(得分:0)
您需要使用正确的参数生成校验和。在paytm的开发人员文档中解释了校验和生成逻辑。另外,请确认您正在整合哪种结帐流程?使用Paytm提供的最新流程。