[英]Paytm IOS Swift with latest SDK Invalid CheckSum
我已经集成了 Paytm 最新的 SDK 并且我在下面附加了以下代码我收到无效的校验和作为响应我面临的问题是什么请帮帮我
var txnController = PGTransactionViewController()
var serv = PGServerEnvironment()
serv = serv.createProductionEnvironment()
let type :ServerType = .eServerTypeProduction
let order = PGOrder(orderID: "", customerID: "", amount: "", eMail: "", mobile: "")
order.params = ["MID": "thiHMw75742998020160",
"ORDER_ID": "1520843747890",
"CUST_ID": "1",
"MOBILE_NO": "9876543210",
"EMAIL": "demo@demo.com",
"CHANNEL_ID": "WAP",
"WEBSITE": "WEBSTAGING",
"TXN_AMOUNT": "100.12",
"INDUSTRY_TYPE_ID": "Retail",
"CHECKSUMHASH": "oCDBVF+hvVb68JvzbKI40TOtcxlNjMdixi9FnRSh80Ub7XfjvgNr9NrfrOCPLmt65UhStCkrDnlYkclz1qE0uBMOrmuKLGlybuErulbLYSQ=",
"CALLBACK_URL": "https://securegw-stage.paytm.in/theia/paytmCallback?ORDER_ID=1520843747890",
"REQUEST_TYPE":"DEFAULT"]
self.txnController = (self.txnController.initTransaction(for: order) as?PGTransactionViewController)!
self.txnController.title = "Paytm Payments"
self.txnController.setLoggingEnabled(true)
if(type != ServerType.eServerTypeNone) {
self.txnController.serverType = type;
} else {
return
}
self.txnController.merchant = PGMerchantConfiguration.defaultConfiguration()
self.txnController.delegate = self
self.navigationController?.pushViewController(self.txnController, animated: true)
}
当用于生成校验和的详细信息与应用程序中提供的详细信息不同时,通常会出现此问题。
请确保服务器和应用程序的详细信息完全相同。 许多其他人也面临同样的问题。 你可能想看看这个线程
问题中提到的校验和 hash 与https://developer.paytm.com/docs/v1/ios-sdk/相同,请确保您使用的是服务器生成的校验和
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.