First of all, you can call your api server to create a checksum. If you are using Almofire then call
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 {}
Please pass all parameter in this api. It gives below response
{ "CHECKSUMHASH": "xxxxxxxxxxxxx", "ORDER_ID": "xxxxxxxx", "payt_STATUS": "1" }
In this Dictionary you will receive CHECKSUMHASH It Pass in paytm order .
source share