Skip to content
Advertisement

unable to show success page after completion of payment

i am using razorpay payment gateway web integration for my learning eccomerce project everyhing work fine payment can be done all i want is to store some information after payment done in my order model using test mode

my views.py for checkout

JavaScript

so what the error is after payment completion i want to show html page and change sttus in db but after payment completion the handlerequest throwinh me http 505 error

JavaScript

any idea what i am doing wrong here in my handlre request view

order model

JavaScript

Advertisement

Answer

The problem is not with your view but with the save method of your model. in the else part you are doing nothing. You should call the super generally.

Please modify the save function as below and then try :

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement