
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@juspay/ec-react-native-library
Advanced tools
A react-native native module library for the Juspay Express Checkout Sdk
This is react-native library for Juspay's Express Checkout SDK. For installing it to your project. Follow the below steps.
npm install @juspay/ec-react-native-library --save
// Required only if react-native version is below 0.60.0
react-native link @juspay/ec-react-native-library
Add below maven url to your app/build.gradle
maven {
url "https://maven.juspay.in/jp-build-packages/hyper-sdk/"
}
(Optional) Add the following ext properties in root build.gradle
if you want to override either of the base SDK versions present in plugin:
buildscript {
....
ext {
....
hyperSDKVersion = "2.0.2-rc.65"
hyperWrapperVersion = "2.0.0-19"
....
}
....
}
Note: These versions are just for explanatory purposes and may change in future. Contact Juspay support team for the latest SDK versions.
Run the following command inside the ios folder of your react native project:
pod install
import EcReactNativeLibrary from '@juspay/ec-react-native-library';
var nbPayload = {
opName: "nbTxn",
paymentMethodType: "NB",
paymentMethod: "enter bank code", //
redirectAfterPayment: "true",
format: "json"
}
//Here payload format is specified for netbanking transaction. For different types of payload types
//for other operations, refer https://developer.juspay.in/docs/expresscheckout-sdk
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",
endUrls: [], //eg: ["https://www.reload.in/recharge/", ".*www.reload.in/payment/f.*"]
payload: JSON.stringify(nbPayload)
},
customParams: {} //customParams are optional key value pairs.
}
EcReactNativeLibrary.startPayment(
JSON.stringify(requestPayload),
(successResponse) => {
console.log(successResponse);
},
(errorResponse) => {
console.log(errorResponse);
}
);
FAQs
A react-native native module library for the Juspay Express Checkout Sdk
The npm package @juspay/ec-react-native-library receives a total of 1 weekly downloads. As such, @juspay/ec-react-native-library popularity was classified as not popular.
We found that @juspay/ec-react-native-library 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.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.