ios – 将Paytm与swift 3.0集成

ios – 将Paytm与swift 3.0集成,第1张

概述我想将paytm支付网关与 swift 3.0集成.我只关注github link .但我在[“CHECKSUMHASH”] =“”中有问题.我能把这个钥匙放进去. orderDict["MID"] = strMid orderDict["ORDER_ID"] = strOrderId 我想将paytm支付网关与 swift 3.0集成.我只关注github link .但我在[“CHECKSUMHASH”] =“”中有问题.我能把这个钥匙放进去.

orderDict["MID"] = strMID                            orderDict["ORDER_ID"] = strOrderID                            orderDict["CUST_ID"] = strCustomerID                            orderDict["INDUSTRY_TYPE_ID"] = strIndustryType                            orderDict["CHANNEL_ID"] = strChanalID                            orderDict["TXN_AMOUNT"] = strAmt                            orderDict["WEBSITE"] = strWebsite                            orderDict["CALLBACK_URL"] = "http://xxxxx.co.in/verifyChecksum.PHP"                    orderDict["CHECKSUMHASH"] = ""

这给了我无效的校验和,请告诉我如何生成校验和.

解决方法 首先,您可以调用服务器API来生成校验和.如果您正在使用Almofire,请致电

var parameters:[String:String]?        parameters = ["MID":strMID,"ORDER_ID":strOrderID,"INDUSTRY_TYPE_ID":strIndustryType,"CHANNEL_ID":strChanalID,"TXN_AMOUNT":strAmt,"WEBSITE":strWebsite,"CUST_ID":strCustomerID,"CALLBACK_URL":"http://xxxxxxx.co.in/verifyChecksum.PHP"]                    showHud(self.vIEw)        print(parameters)        Alamofire.request("http://xxxxxx.co.in/generateChecksum.PHP",method: .post,parameters: parameters,enCoding: URLEnCoding.default,headers: nil).responseJsON {}

请传递此API中的所有参数.它给出了以下回应

{  "CHECKSUMHASH": "xxxxxxxxxxxxx","ORDER_ID": "xxxxxxxx","payt_STATUS": "1"}

在这本词典中,你得到CHECKSUMHASH它传递给paytm命令.

总结

以上是内存溢出为你收集整理的ios – 将Paytm与swift 3.0集成全部内容,希望文章能够帮你解决ios – 将Paytm与swift 3.0集成所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/web/1073293.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存