title: How to integrate Paytm payment gateway in Swift
body: <p>I have checked all the tutorial and also did a lot of R &amp; D on gateway integration.
  But didn't find a way to integrate paytm payment gateway.</p>
  
  <pre><code>func paymentConfiguration()
  {
      var orderDict = [AnyHashable: Any]()
      orderDict["MID"] = "WorldP64425807474247"
      orderDict["CHANNEL_ID"] = "WAP"
      orderDict["INDUSTRY_TYPE_ID"] = "Retail"
      orderDict["WEBSITE"] = "worldpressplg"
      orderDict["TXN_AMOUNT"] = "1"
      orderDict["ORDER_ID"] = ViewController.generateOrderID(withPrefix: "")
      orderDict["CALLBACK_URL"] = "https://securegw.paytm.in/theia/paytmCallback?ORDER_ID=&lt;ORDER_ID&gt;"
      orderDict["CHECKSUMHASH"] = "w2QDRMgp1/BNdEnJEAPCIOmNgQvsi+BhpqijfM9KvFfRiPmGSt3Ddzw+oTaGCLneJwxFFq5mqTMwJXdQE2EzK4px2xruDqKZjHupz9yXev4="
      orderDict["REQUEST_TYPE"] = "DEFAULT"
      orderDict["CUST_ID"] = "1234567890"
      var order = PGOrder(params: orderDict)
  }
  
  
  
  func openPaytmController()
  {
      PGServerEnvironment.selectServerDialog(view, completionHandler: {(_ type: ServerType) -&gt; Void in
          var txnController = PGTransactionViewController.initTransaction(forOrder: order)
          if type != eServerTypeNone {
              txnController.serverType = type
              txnController.merchant = mc
              txnController.delegate = self
              self.show(txnController)
          }
      })
  }
  </code></pre>
  
  <p>Any help would be greatly appreciated.
  Thanks in advance</p>