Easily integrate PhonePe Payment Gateway
If you dont have have an account create one by the following link
This package package can be used for server-side working with Node.js or Other Server ation supported frameworks like Next.js etc
npm i phonepepg
Required Parameters:
param | required |
---|---|
merchantId | true |
saltKey | true |
isDev | false |
import PhonepeGateway from 'phonepepg';
const gateway = new PhonepeGateway({
merchantId: 'MYMERCHANTID',
saltKey: 'XXXXXXXXXXXXXXXXXXX',
isDev: true // false for production
});
const resp = await gateway.initPayment({
amount:100,
transactionId:'TR12345',
userId:'userid',
redirectUrl:'https://mysite.com/payredirect',
callbackUrl:'https://mysite.com/callback'
});
const resp = await gateway.paymentStatus(transactionId);
const checksome = gateway.getChecksum(transactionId);
This package is still in development. Click to Contribute
Copyright (c) 2024