generate key from https://dashboard.paytm.com/
Accept request at
http://localhost:4100/callback
(later update with live url (where application is hosted))
CallBack to
http://localhost:4100/viewBooking?status=${_results.STATUS}&ORDERID=${_results.ORDERID}&date=${_results.TXNDATE}&bank=${_results.BANKNAME}
(later update with live url where api is hosted : heroku)
git clone https://github.com/suraj-singh12/pay-with-paytm.git
-
Create api keys from paytm dashboard : https://dashboard.paytm.com/
-
copy the keys and replace all the values in
config.js
file.
Documentation: https://business.paytm.com/docs/getting-started/
paytm-payment-gateway-api-documentation
npm install
npm start
Go to localhost url and proceed after filling in details.
You will receive the details of payment in the terminal window itself, and also on the redirect (last) page.