"OOPS failed for any of these reasons" when trying to call paytm

I integrate paytm into my Android app using this documentation: PAYTM integration in an Android app

but when I press the payment button using the PAYTM button, the following error appears:

Payment could not be completed for one of the following reasons:

  • Session expired due to inactivity
  • Our system encountered an obstacle

You can fix it yourself! Here's how:

  • Delete cookies and temporary internet browser files.
  • Check the payment status at your bank to avoid double payment.
  • Launch a new browser and start from the beginning.
  • Still unable to complete the transaction? visit us at paytm.com/care

I use PHP for backend services as provided in the PAYTM documentation.

I am using mailbox credentials right now for testing purposes.

MID: *************** 45797

Seller Key: ************ vIM1

+3
source share
1 answer

Here is a solution for everyone:

Be sure to send an equal number of parameters to your server (for the checksum generator), and then to the paytm server for payment.

For example: If you send 6 parameters for a checksum generator, send these 6 identical parameters, including Checksum, to Paytm ... This will solve your problem.

CODE EXAMPLE:

#Generate checksum.php $paramList = array(); $paramList["MID"] = 'Provided by Paytm'; //Provided by Paytm $paramList["ORDER_ID"] = 'hIquwhzvzTG7gvT'; //unique OrderId for every request $paramList["CUST_ID"] = 'CUST0001453'; // unique customer identifier $paramList["INDUSTRY_TYPE_ID"] = 'Retail'; //Provided by Paytm $paramList["CHANNEL_ID"] = 'WAP'; //Provided by Paytm $paramList["TXN_AMOUNT"] = '10.00'; // transaction amount $paramList["WEBSITE"] = 'APP_STAGING';//Provided by Paytm $paramList["CALLBACK_URL"] = 'https://pguat.paytm.com/paytmchecksum/paytmCallback.jsp'; #Android Activity.java paramMap.put("MID" , "#########"); paramMap.put( "ORDER_ID" , "hIquwhzvzTG7gvT"); paramMap.put( "CUST_ID" , "CUST0001453"); paramMap.put( "CHANNEL_ID" , "WAP"); paramMap.put( "TXN_AMOUNT" , "10.00"); paramMap.put( "WEBSITE" , "APP_STAGING"); paramMap.put( "CALLBACK_URL" , "https://pguat.paytm.com/paytmchecksum/paytmCallback.jsp"); paramMap.put( "CHECKSUMHASH" , "dR5OtEkuNkgamHTZDCHmF+CF3j9RdG1520mlHEb85oSZP1CaxVUsRY2sYric90HLm/vElaPZKoQ7b5/SyFpi3oBWXf2BQNy+r6iiBwg4AH4="); paramMap.put("INDUSTRY_TYPE_ID" , "Retail"); 

NOTE. Please keep in mind to send exact paytm server parameters plus one checksum .....

-2
source

All Articles