@finos_sdk/sdk-ekyc 1.2.8 → 1.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/android/build.gradle +1 -1
- package/android/src/main/java/finos/sdk/ekyc/EKYCModule.kt +13 -0
- package/dist/EKYCModule.d.ts +1 -0
- package/dist/EKYCModule.js +13 -0
- package/dist/package.json +1 -1
- package/dist/src/modules/FinosEKYCModule.d.ts +5 -0
- package/dist/src/modules/FinosEKYCModule.js +17 -0
- package/package.json +1 -1
- package/src/modules/FinosEKYCModule.ts +18 -0
- package/dist/finos_sdk-sdk-ekyc-1.2.8.tgz +0 -0
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
React Native SDK for eKYC (electronic Know Your Customer) - Vietnamese CCCD NFC reading, OCR, Liveness detection, Face matching, and C06 residence verification.
|
|
7
7
|
|
|
8
|
-
**Version**: 1.2.
|
|
8
|
+
**Version**: 1.2.9
|
|
9
9
|
|
|
10
10
|
## 🚀 Features
|
|
11
11
|
|
|
@@ -482,7 +482,7 @@ MIT License - see [LICENSE](LICENSE) file for details.
|
|
|
482
482
|
|
|
483
483
|
## 🔄 Migration Guide
|
|
484
484
|
|
|
485
|
-
### From Version 0.0.30 to 1.2.
|
|
485
|
+
### From Version 0.0.30 to 1.2.9
|
|
486
486
|
|
|
487
487
|
**New Features:**
|
|
488
488
|
- Unified `FinosEKYC.startEkycUI()` method for complete flows
|
|
@@ -492,7 +492,7 @@ MIT License - see [LICENSE](LICENSE) file for details.
|
|
|
492
492
|
- GitHub Packages Maven repository integration (no local files required)
|
|
493
493
|
|
|
494
494
|
**Migration Steps:**
|
|
495
|
-
1. Update installation to version 1.2.
|
|
495
|
+
1. Update installation to version 1.2.9
|
|
496
496
|
2. Configure GitHub credentials for Maven repository (see Android Setup)
|
|
497
497
|
3. Update import statement to use `FinosEKYC` class
|
|
498
498
|
4. Consider using `startEkycUI` instead of individual modules
|
|
@@ -507,7 +507,7 @@ SdkEkyc.onNfcScanSuccess((data) => { ... });
|
|
|
507
507
|
await SdkEkyc.startNfcScan(config);
|
|
508
508
|
```
|
|
509
509
|
|
|
510
|
-
**After (1.2.
|
|
510
|
+
**After (1.2.9):**
|
|
511
511
|
```typescript
|
|
512
512
|
import { FinosEKYC } from '@finos_sdk/sdk-ekyc';
|
|
513
513
|
|
|
@@ -536,13 +536,13 @@ If migrating from the native Android SDK:
|
|
|
536
536
|
## 📦 Package Information
|
|
537
537
|
|
|
538
538
|
- **Package**: `@finos_sdk/sdk-ekyc`
|
|
539
|
-
- **Version**: 1.2.
|
|
539
|
+
- **Version**: 1.2.9
|
|
540
540
|
- **Platform**: Android (iOS support planned)
|
|
541
541
|
- **React Native**: 0.77.0+
|
|
542
542
|
- **License**: MIT
|
|
543
543
|
- **Repository**: [GitHub](https://github.com/finosvn/finos.ekyc.sdk)
|
|
544
544
|
|
|
545
|
-
## 🆕 What's New in v1.2.
|
|
545
|
+
## 🆕 What's New in v1.2.9
|
|
546
546
|
|
|
547
547
|
- ✨ Unified `startEkycUI` method for complete eKYC flows
|
|
548
548
|
- 🎨 Enhanced UI customization with `styleConfig`
|
package/android/build.gradle
CHANGED
|
@@ -65,7 +65,7 @@ dependencies {
|
|
|
65
65
|
implementation 'com.facebook.react:react-android'
|
|
66
66
|
|
|
67
67
|
// Finos eKYC SDK dependencies from GitHub Packages Maven repository
|
|
68
|
-
def sdkVersion = "1.2.
|
|
68
|
+
def sdkVersion = "1.2.9"
|
|
69
69
|
implementation("finos.sdk.ekyc:ekyc:$sdkVersion")
|
|
70
70
|
implementation("finos.sdk.ekyc:ekycui:$sdkVersion")
|
|
71
71
|
implementation("finos.sdk.ekyc:nfc:$sdkVersion")
|
|
@@ -105,6 +105,19 @@ class EKYCModule(reactContext: ReactApplicationContext) : ReactContextBaseJavaMo
|
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
@ReactMethod
|
|
109
|
+
fun setTransactionId(transactionId: String, promise: Promise) {
|
|
110
|
+
Log.d(TAG, "▶️ setTransactionId() called with: $transactionId")
|
|
111
|
+
try {
|
|
112
|
+
SdkEkyc.setTransactionId(transactionId)
|
|
113
|
+
Log.d(TAG, "✅ setTransactionId() success")
|
|
114
|
+
promise.resolve(true)
|
|
115
|
+
} catch (e: Exception) {
|
|
116
|
+
Log.e(TAG, "❌ setTransactionId() failed: ${e.message}", e)
|
|
117
|
+
promise.reject("SET_TRANSACTION_ID_ERROR", "Failed to set transaction ID: ${e.message}")
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
108
121
|
@ReactMethod
|
|
109
122
|
fun startNfcScan(
|
|
110
123
|
appKey: String,
|
package/dist/EKYCModule.d.ts
CHANGED
package/dist/EKYCModule.js
CHANGED
|
@@ -130,6 +130,19 @@ class SDKeKYC {
|
|
|
130
130
|
throw error;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
+
// Set transaction ID
|
|
134
|
+
async setTransactionId(transactionId) {
|
|
135
|
+
const nativeModule = this.ensureNativeModule();
|
|
136
|
+
try {
|
|
137
|
+
const result = await nativeModule.setTransactionId(transactionId);
|
|
138
|
+
console.log('✅ Transaction ID set successfully:', transactionId);
|
|
139
|
+
return result;
|
|
140
|
+
}
|
|
141
|
+
catch (error) {
|
|
142
|
+
console.error('❌ Failed to set transaction ID:', error);
|
|
143
|
+
throw error;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
133
146
|
// Check if SDK is initialized
|
|
134
147
|
isSDKInitialized() {
|
|
135
148
|
return this.isInitialized;
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos_sdk/sdk-ekyc",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"description": "React Native SDK for eKYC - Vietnamese CCCD NFC reading, OCR, Liveness detection, Face matching, and C06, eSign, SmsOTP residence verification",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -46,6 +46,11 @@ export declare class FinosEKYCModule {
|
|
|
46
46
|
* Check if SDK is initialized
|
|
47
47
|
*/
|
|
48
48
|
isSDKReady(): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Set transaction ID
|
|
51
|
+
* @param transactionId Transaction ID string
|
|
52
|
+
*/
|
|
53
|
+
setTransactionId(transactionId: string): Promise<boolean>;
|
|
49
54
|
/**
|
|
50
55
|
* Start NFC scanning for Vietnamese CCCD
|
|
51
56
|
* @param config NFC configuration
|
|
@@ -109,6 +109,23 @@ class FinosEKYCModule {
|
|
|
109
109
|
isSDKReady() {
|
|
110
110
|
return this.isInitialized && this.sdk.isSDKInitialized();
|
|
111
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* Set transaction ID
|
|
114
|
+
* @param transactionId Transaction ID string
|
|
115
|
+
*/
|
|
116
|
+
async setTransactionId(transactionId) {
|
|
117
|
+
this.validateSDKReady();
|
|
118
|
+
try {
|
|
119
|
+
console.log('🆔 Setting transaction ID:', transactionId);
|
|
120
|
+
const result = await this.sdk.setTransactionId(transactionId);
|
|
121
|
+
console.log('✅ Transaction ID set successfully');
|
|
122
|
+
return result;
|
|
123
|
+
}
|
|
124
|
+
catch (error) {
|
|
125
|
+
console.error('❌ Failed to set transaction ID:', error);
|
|
126
|
+
throw error;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
112
129
|
/**
|
|
113
130
|
* Start NFC scanning for Vietnamese CCCD
|
|
114
131
|
* @param config NFC configuration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@finos_sdk/sdk-ekyc",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"description": "React Native SDK for eKYC - Vietnamese CCCD NFC reading, OCR, Liveness detection, Face matching, and C06, eSign, SmsOTP residence verification",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -110,6 +110,24 @@ export class FinosEKYCModule {
|
|
|
110
110
|
return this.isInitialized && this.sdk.isSDKInitialized();
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
/**
|
|
114
|
+
* Set transaction ID
|
|
115
|
+
* @param transactionId Transaction ID string
|
|
116
|
+
*/
|
|
117
|
+
public async setTransactionId(transactionId: string): Promise<boolean> {
|
|
118
|
+
this.validateSDKReady();
|
|
119
|
+
|
|
120
|
+
try {
|
|
121
|
+
console.log('🆔 Setting transaction ID:', transactionId);
|
|
122
|
+
const result = await this.sdk.setTransactionId(transactionId);
|
|
123
|
+
console.log('✅ Transaction ID set successfully');
|
|
124
|
+
return result;
|
|
125
|
+
} catch (error) {
|
|
126
|
+
console.error('❌ Failed to set transaction ID:', error);
|
|
127
|
+
throw error;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
113
131
|
/**
|
|
114
132
|
* Start NFC scanning for Vietnamese CCCD
|
|
115
133
|
* @param config NFC configuration
|
|
Binary file
|