       params.udf8 = "";
       params.udf9 = "";
       params.udf10 = "";
-    
     //We strictly recommend that you calculate hash on your server end. Just so that you can quickly see demo app working, we are providing a means to do it here. Once again, this should be avoided.
     if(params.environment == PUMEnvironment.production){
       generateHashForProdAndNavigateToSDK()

    var paymentNavController : UINavigationController;
    paymentNavController = UINavigationController(rootViewController: paymentVC);
    self.present(paymentNavController, animated: true, completion: nil)
  }
  
  func showAlertViewWithTitle(title : String,message:String) -> Void {

    self.present(alertController, animated: true, completion: nil)
  }

// MARK:HASH CALCULATION
  
  //hash calculation strictly recommended to be done on your server end. This is just to show the hash sequence format and oe the api call for hash should be. Encryption is SHA-512.
 func prepareHashBody()->NSString{
  return "key=\(params.key!)&amount=\(params.amount!)&txnid=\(params.txnid!)&productinfo=\(params.productinfo!)&email=\(params.email!)&firstname=\(params.firstname!)" as NSString;
  }
