.NET SDK Installation


To integrate the PhonePe .NET SDK(v2.1.1) into your application, ensure you are using .NET version 8 or higher. The SDK is compatible with .NET 8+ and helps you interact with the PhonePe Payment Gateway with minimal effort.

To install the SDK, run the following command in your terminal or package manager console:

Install SDK
dotnet add package phonepe-pg-sdk-dotnet --version 2.1.1

This command adds the latest stable version of the SDK as a dependency to your project. Once installed, you can begin initializing the client and integrating PhonePe APIs.

Now that you’ve added the .NET SDK to your project, the next step is to initialize the required classes.

Head over to the Class Initialization section to learn how to set it up properly.

Is this article helpful?