Node.js SDK Installation


The PhonePe PG Backend SDK for Node.js is designed to simplify the process of integrating PhonePe’s payment solutions into your backend systems. It provides a structured, pre-built interface for securely interacting with PhonePe’s payment infrastructure.

This SDK helps you build a reliable and PCI-compliant payment flow with minimal effort. Ideal for server-side environments, it ensures robust communication between your application backend and the PhonePe Payment Gateway.

  • Node.js: v14 or higher

Use the following command to install the SDK in your Node.js project:

Command to Install
npm i https://phonepe.mycloudrepo.io/public/repositories/phonepe-pg-sdk-node/releases/v2/phonepe-pg-sdk-node.tgz

This command will install the SDK from the specified repository.

Now that you’ve added the Node.js 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?