
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
react-native-kalapa-zalo-miniapp-ekyc
Advanced tools
React Native SDK for Kalapa eKYC integration, providing a seamless way to implement eKYC functionality in your React Native applications.
Using npm:
npm install react-native-kalapa-ekyc
Using yarn:
yarn add react-native-kalapa-ekyc
Add the following to your Podfile:
pod 'react-native-kalapa-ekyc', :path => '../node_modules/react-native-kalapa-ekyc'
Then run:
cd ios && pod install
import KalapaEkyc from 'react-native-kalapa-ekyc';
// Initialize the SDK
const ekyc = new KalapaEkyc({
clientId: 'YOUR_CLIENT_ID',
clientSecret: 'YOUR_CLIENT_SECRET',
environment: 'sandbox' // or 'production'
});
// Start eKYC flow
try {
const result = await ekyc.startEkyc();
console.log('eKYC Result:', result);
} catch (error) {
console.error('eKYC Error:', error);
}
The SDK provides a WebView-based implementation:
import { WebViewScreen } from 'react-native-kalapa-ekyc';
// In your navigation/component
<WebViewScreen
clientId="YOUR_CLIENT_ID"
clientSecret="YOUR_CLIENT_SECRET"
onComplete={(result) => {
console.log('WebView eKYC completed:', result);
}}
onError={(error) => {
console.error('WebView eKYC error:', error);
}}
/>
interface KalapaEkycOptions {
clientId: string;
clientSecret: string;
environment: 'sandbox' | 'production';
timeout?: number;
language?: 'en' | 'vi';
}
startEkyc()
: Starts the eKYC flowgetSessionStatus(sessionId: string)
: Get status of an eKYC sessionvalidateSession(sessionId: string)
: Validate an eKYC sessioninterface WebViewScreenProps {
clientId: string;
clientSecret: string;
onComplete: (result: EkycResult) => void;
onError: (error: Error) => void;
language?: 'en' | 'vi';
theme?: 'light' | 'dark';
}
interface EkycResult {
sessionId: string;
status: 'completed' | 'pending' | 'failed';
data?: {
idCard?: IdCardData;
face?: FaceData;
verification?: VerificationResult;
};
}
interface IdCardData {
type: string;
number: string;
name: string;
dob: string;
// ... other ID card fields
}
The SDK throws typed errors that you can handle:
try {
await ekyc.startEkyc();
} catch (error) {
if (error instanceof KalapaEkycError) {
// Handle SDK-specific errors
console.error(error.code, error.message);
} else {
// Handle other errors
console.error(error);
}
}
Option | Type | Description | Default |
---|---|---|---|
clientId | string | Your Kalapa client ID | Required |
clientSecret | string | Your Kalapa client secret | Required |
environment | string | 'sandbox' or 'production' | 'sandbox' |
timeout | number | Request timeout in ms | 30000 |
language | string | 'en' or 'vi' | 'en' |
yarn install
yarn example
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
For support, please contact support@kalapa.vn or visit our documentation.
FAQs
React Native SDK for Kalapa eKYC integration
The npm package react-native-kalapa-zalo-miniapp-ekyc receives a total of 0 weekly downloads. As such, react-native-kalapa-zalo-miniapp-ekyc popularity was classified as not popular.
We found that react-native-kalapa-zalo-miniapp-ekyc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.