Skip to content

payu-intrepos/web-sdk-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PayU SDK for NodeJS

The PayU SDK for NodeJS enables you to easily work with APIs of PayU by easily integrating this SDK within your base system. With our SDK, you do not need to worry about low level details for doing API integration and with few lines of code and a function calling, it can be done within few minutes.

Features Supported

Following features are supported in the PayU NodeJS web SDK:

  • Create Payment form.
  • Verify transactions, check the transaction status, transaction details, or discount rate for a transaction
  • Initiated refunds, cancel refund, check refund status.
  • Retrieve settlement details which the bank has to settle you.
  • Get information of the payment options, offers, recommendations, and downtime details.
  • Check the customer’s eligibility for EMI and get the EMI amount according to interest
  • Pay by link genration

To get started with PayU, visit our Developer Guide

Table of Contents

  1. Installation
  2. Getting Started
  3. Documentation for various Methods

Installation

npm

npm install payu-websdk

Getting Started

Please follow the installation instruction and execute the following JS code for creating the instance of PayU Object:

const PayU = require("payu-websdk");

const payuClient = new PayU({
  key: <YOUR_MERCHANT_KEY>,
  salt: <YOUR_MERCHANT_SALT>,
},<ENVIRONMENT>);     // Possible value  = TEST/LIVE

Documentation for various Methods

Method Description
paymentInitiate [sync] Genereate auto submit HTML form to intitiate transaction
verifyPayment [async] Provides the details of a transaction
getTransactionDetails [async] Provides the details of a transactions for a specfic timeperiod
validateVPA [async] Used to validate VPA of a user.
cancelRefundTransaction [async] Initiate refunds.
checkActionStatus [async] Check the status of a refund.
getNetbankingStatus [async] Check downtime status of PGs.
getIssuingBankStatus [async] Check downtime through bin number.
checkIsDomestic [async] Check the bin information
createInvoice [async] Used to create email and SMS invoice ( Pay by link ).
expireInvoice [async] Used to expire an existing invoice.
eligibleBinsForEMI [async] Used for checking the card eligibilty for EMI through the bin number.
getEmiAmountAccordingToInterest [async] Used to fetch interest accordign to Banks and tenure.
getSettlementDetails [async] Used to fetch settlement details for a particular date.
getCheckoutDetails [async] Used to fetch payment options, offers, eligibility, recommendations, and downtime details.

About

PayU Web SDK for NodeJs tech stack integration

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors