title: How to fix Paytm Session Expired failure error in android?
body: <p>I'm integrating Paytm payment gateway in android application, I had followed all basic requirements and steps given by Paytm. also copy files from GitHub for generating checksum and verifychecksum. also set my merchant id and merchant key. but while integrating to android application it shows me error like:
  1) This MID is not available in staging environment
  2) Session Expired failure
  3) Checksum mismatch.</p>
  
  <p>I'm had solved 1st error but not able to complete 2nd and 3rd i had already mailed to Paytm still not get any response from them.</p>
  
  <p>I'm using Android studio, with XAMPP with gradle for Paytm is </p>
  
  <pre><code>implementation('com.paytm:pgplussdk:1.3.3') {
          transitive = true;
      }
  </code></pre>
  
  <p>here i share some sample code of android and php too.</p>
  
  <p>Android:</p>
  
  <pre><code> HashMap&lt;String, String&gt; paramMap = new HashMap&lt;&gt;();
      paramMap.put( "MID", paytm.getMID() );
      paramMap.put( "ORDER_ID", ordId );
      paramMap.put( "CUST_ID", "cust123" );
      paramMap.put( "MOBILE_NO", paytm.getUserPhone() );
      paramMap.put( "EMAIL", paytm.getUserEmail() );
      paramMap.put( "CHANNEL_ID", "WAP" );
      paramMap.put( "TXN_AMOUNT", "100.12" );
      paramMap.put( "WEBSITE", "WEBSTAGING" );
      paramMap.put( "INDUSTRY_TYPE_ID", "Retail" );
      paramMap.put( "CALLBACK_URL", paytm.getCallBackUrl() );
      paramMap.put( "CHECKSUMHASH", checksumHash );
  </code></pre>
  
  <p>Backend generateChecksum.php</p>
  
  <pre><code>$paytmParams = array();
  $paytmParams["MID"] = merchantMid;
  $paytmParams["ORDER_ID"] = orderId;
  $paytmParams["CUST_ID"] = custId;
  $paytmParams["MOBILE_NO"] = mobileNo;
  $paytmParams["EMAIL"] = email;
  $paytmParams["CHANNEL_ID"] = channelId;
  $paytmParams["TXN_AMOUNT"] = txnAmount;
  $paytmParams["WEBSITE"] = website;
  $paytmParams["INDUSTRY_TYPE_ID"] = industryTypeId;
  $paytmParams["CALLBACK_URL"] = callbackUrl;
  </code></pre>