Python SDK – Installation
Integrating the PhonePe Python SDK(v 2.1.7) into your website is the first step toward enabling secure and reliable digital payments. The SDK provides all the necessary tools to seamlessly communicate with PhonePe’s APIs for transaction initiation, response handling, and more.
Prerequisites
Before you start the integration process, ensure you have:
- Access to PhonePe PG’s UAT (User Acceptance Testing) and production environments.
- A testing environment to simulate the payment flow.
- Python 3.9 or higher installed on your system.
To integrate the PhonePe Payment Gateway into your Python project, start by installing the phonepe_sdk package:
- Open a terminal or command prompt.
- Run the following command to install the phonepe_sdk package:
install phonepe_sdk package
pip install phonepe-pg-sdk-pythonThis command will install the SDK from the specified repository. If everything is set up correctly, you can import and use the phonepe_sdk library in your Python projects.