javascriptdjangopaytm

Having trouble integrating payment gateway in my Django website


I have tried to see this tutorial to make a Django E-Commerce website. In this the maker has added PayPal but I want to add Paytm Gateway.

My problem is that in the video there is a submitformdata() function which on payment approval saves the form data but I can't do it in Paytm integration as it does not give me and JavaScript code so that I can check the payment status in JavaScript and then call the submitformdata() accordingly.

Please suggest how to check if the payment is successful in JavaScript and the save the form data.


Solution

  • Pass the paytm_dict as in their docs in context and use if else in javascript for checking transaction status and execute accordingly.This much i can tell without seeing your code