Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
@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 0 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
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.