![Malicious npm Package Typosquats react-login-page to Deploy Keylogger](https://cdn.sanity.io/images/cgdhsj6q/production/007b21d9cf9e03ae0bb3f577d1bd59b9d715645a-1024x1024.webp?w=400&fit=max&auto=format)
Research
Security News
Malicious npm Package Typosquats react-login-page to Deploy Keylogger
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
@juspay/ec-headless-cordova-plugin
Advanced tools
Changelog
1.1.6
Readme
JusPay has a native android and iOS client which can be used by PhoneGap applications. To get started, you first need to download the code for the plugin.
This requires phonegap/cordova CLI 5.0+
Add the plugin to your phonegap/cordova apps using these commands.
$ phonegap plugin add @juspay/ec-headless-cordova-plugin
(or)
$ cordova plugin add @juspay/ec-headless-cordova-plugin
To add or change ec-hl-cordova-plugin specific dependencies, refer this file.
platforms/android/ec-hl-cordova-plugin/<appname>-_plugin-dependencies.gradle
Minimum supported iOS version: 9.0
If you are getting the pod error like Failed to install 'ec-hl-cordova-plugin': Error: pod: Command failed with exit code 1
while installing "ec-hl-cordova-plugin" for ios, please update platform :ios
to '9.0' in the Podfile and run the command pod install
.
var nbPayload = {
opName: "nbTxn",
paymentMethodType: "NB",
paymentMethod: "enter bank code", // Eg: NB_SBI
redirectAfterPayment: "true",
format: "json"
}
//Here payload format is specified for netbanking transaction. For other operations, refer
[EC SDK Doc - Android](https://developer.juspay.in/docs/android)
[EC SDK Doc - iOS](https://developer.juspay.in/docs/ios-payments-sdk-integration)
var requestPayload = {
baseParams: {
merchant_id: "pass merchant id",
client_id: "pass client id",
transaction_id: "pass transaction id", //optional
order_id: "pass order id",
amount: "amount", //eg: "1.00"
customer_id : "pass customer id",
customer_email : "pass email",
customer_phone_number : "pass phone number",
environment: "pass environment" //eg: "sandbox" or "prod"
},
serviceParams: {
service: "in.juspay.ec",
session_token: "pass client auth token",
end_urls: [], //eg: ["https://www.reload.in/recharge/", ".*www.reload.in/payment/f.*"]
payload: JSON.stringify(nbPayload)
},
customParams: {}, //customParams are optional key value pairs. { udf_circle: "Andhra Pradesh" }
onSuccess: function (successResponse) {
console.log("Success Response", successResponse);
},
onError: function (errorResponse) {
console.log("Error Response", errorResponse);
}
}
var expressCheckout = new ExpressCheckout();
expressCheckout.startPayment(requestPayload);
FAQs
Unknown package
We found that @juspay/ec-headless-cordova-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
Security News
The JavaScript community has launched the e18e initiative to improve ecosystem performance by cleaning up dependency trees, speeding up critical parts of the ecosystem, and documenting lighter alternatives to established tools.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.