Ensure you are using the latest version of the SDK. You can download the latest version of the SDK from GitHub.
pip install flask pip install razorpay==0.2.0 python app.py
If you are re-using this as your final code, please ensure you:
Edit the keys inside templates/app.html.
Edit the <key_id> and <key_secret> in app.py. Use the live keys when using the application to accept live payments. Click here to learn more about how to generate keys.