API ReferenceIntegrationsKnowledge Base

Sample Application

Note:
Here is the link to the Razorpay Python Test App.
Ensure you are using the latest version of the SDK. You can download the latest version of the SDK from GitHub.

Steps for Integration#

Copypip install flask pip install razorpay==0.2.0 python app.py

Note:
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.