Paytm integration with Ruby on Rails
What is Paytm Payment Gateway?
Even though Drupal is quite a secure platform for the business, it is still not completely secured from the hands of spam bots and hackers. Being an open-source makes Drupal more of a secure thing and it is taken care by a number of security experts who work continuously to check for weaknesses in the core or for vulnerabilities and its modules. Once the security team finds such an issue then they will quickly come up with a security update or a patch for the module in question and release it soon.
Terms you need to know before proceeding further
MID :This is a unique identifier provided to every merchant by Paytm. MID is part of your account credentials and is different on staging and production environment. Your staging MID is available here and production MID will be available once your activation is complete.
Merchant Key :This is a unique secret key used for secure encryption of every request. This needs to be kept on server side and should not be shared with anyone.
CHANNEL_ID :This parameter is used to control the theme of the payment page. Based on the channel passed, Paytm will render the layout suitable for that specific platform For websites, the value is WEB For Mobile websites/App, the value is WAP
WEBSITE :For staging environment: WEBSTAGING,
For production environment: Will be available here once your activation is completeli>
INDUSTRY_TYPE_ID : For staging environment: "Retail",
For production environment: Will be available here once your activation is complete.
CALLBACK_URL : On completion of transaction, Paytm payment gateway will send the response on this URL. Sample URL is - https://merchant.com/callback/
Payment_url : when start payment it’s redirect to payment gateway. In that we can not go back or not refresh the page.
These are the steps to integrate Paytm as payment gateway in your rails app.