This repository contains phonepe api examples that generates payment links. With this tool, you can easily create secure payment links that can be shared with customers for online transactions. The Razorpay API integration ensures a smooth and reliable payment process, allowing you to accept payments seamlessly.
Feel free to explore the code and documentation to learn more about how to use these examples for generating payment links with phonepe.
- webhook can be generated for testing with this website - https://webhook.site/
- api docs for razor pay - https://developer.phonepe.com/v1/reference/pay-api-1/
- test card details - https://developer.phonepe.com/v1/docs/uat-testing
If you don’t have an account, sign up for a phonepe business account at https://www.phonepe.com/business-solutions/payment-gateway/
-
Step 1 -
-
Step 2 - Change
constants_copy.pytoconstants.pyand change the required constants into the file -
Step 3 - Create virtual environment
python3 -m venv py-phonepe source py-phonepe/bin/activate -
Step 4 Install package and run the program
pip install -r requirements.txt python main.py
Check the functions in main.py file
Email: cse.14bcs1065@gmail.com