TP-71633 | Digio Gateway Events (#11603)
This commit is contained in:
@@ -51,7 +51,9 @@ import com.navi.ap.common.ui.composables.GenericShimmerLoader
|
||||
import com.navi.ap.common.viewmodel.ApplicationPlatformVM
|
||||
import com.navi.ap.utils.constants.CAPTURED_IMAGE_URI
|
||||
import com.navi.ap.utils.constants.CAPTURE_ERROR_MEESAGE
|
||||
import com.navi.ap.utils.constants.DOCUMENT_CAPTURE_CAMERA_CLICK
|
||||
import com.navi.ap.utils.constants.WIDGET_DATA
|
||||
import com.navi.ap.utils.logApEvent
|
||||
import com.navi.base.utils.isNotNull
|
||||
import com.navi.uitron.model.UiTronResponse
|
||||
import com.navi.uitron.model.ui.TextProperty
|
||||
@@ -157,6 +159,7 @@ class CameraWidget {
|
||||
onCameraReady = { ready -> isCameraReady = ready }
|
||||
)
|
||||
CaptureButton(cameraWidgetData) {
|
||||
logApEvent(eventName = DOCUMENT_CAPTURE_CAMERA_CLICK)
|
||||
cameraHelper.capturePhoto(context, imageCapture, onImageCaptured, onError)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
*
|
||||
* * Copyright © 2023 by Navi Technologies Limited
|
||||
* * Copyright © 2023-2024 by Navi Technologies Limited
|
||||
* * All rights reserved. Strictly confidential
|
||||
*
|
||||
*/
|
||||
@@ -31,6 +31,12 @@ import com.navi.ap.utils.constants.DATA
|
||||
import com.navi.ap.utils.constants.DESCRIPTION
|
||||
import com.navi.ap.utils.constants.DIGILOCKER
|
||||
import com.navi.ap.utils.constants.DIGILOCKER_SDK_RESULT_ERROR
|
||||
import com.navi.ap.utils.constants.DIGIO_DOCUMENT_ID
|
||||
import com.navi.ap.utils.constants.DIGIO_ENTITY
|
||||
import com.navi.ap.utils.constants.DIGIO_EVENT
|
||||
import com.navi.ap.utils.constants.DIGIO_GATEWAY_EVENT
|
||||
import com.navi.ap.utils.constants.DIGIO_IDENTIFIER
|
||||
import com.navi.ap.utils.constants.DIGIO_TRANSACTION_ID
|
||||
import com.navi.ap.utils.constants.DIGITAP
|
||||
import com.navi.ap.utils.constants.DIGITAP_ERROR_STATUS_CODE
|
||||
import com.navi.ap.utils.constants.DIGITAP_SDK_RESULT_ERROR
|
||||
@@ -113,7 +119,16 @@ abstract class SdkHandlingActivity :
|
||||
)
|
||||
}
|
||||
|
||||
override fun onGatewayEvent(gatewayEvent: GatewayEvent) {}
|
||||
override fun onGatewayEvent(gatewayEvent: GatewayEvent) {
|
||||
logApEvent(
|
||||
Pair(DIGIO_DOCUMENT_ID, gatewayEvent.documentId.toString()),
|
||||
Pair(DIGIO_ENTITY, gatewayEvent.entity.toString()),
|
||||
Pair(DIGIO_EVENT, gatewayEvent.event.toString()),
|
||||
Pair(DIGIO_TRANSACTION_ID, gatewayEvent.txnId.toString()),
|
||||
Pair(DIGIO_IDENTIFIER, gatewayEvent.identifier.toString()),
|
||||
eventName = DIGIO_GATEWAY_EVENT,
|
||||
)
|
||||
}
|
||||
|
||||
override fun onPaymentSuccess(description: String?, data: PaymentData?) {
|
||||
sdkHandler.razorpayHandler.handleRazorpaySdkResult(
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
*
|
||||
* * Copyright © 2023 by Navi Technologies Limited
|
||||
* * Copyright © 2023-2024 by Navi Technologies Limited
|
||||
* * All rights reserved. Strictly confidential
|
||||
*
|
||||
*/
|
||||
@@ -17,12 +17,19 @@ const val KYC_VERIFICATION = "KYC_VERIFICATION"
|
||||
const val FLOW_NAME = "flowName"
|
||||
const val VENDOR_NAME = "vendorName"
|
||||
const val SCREEN_NAME = "screenName"
|
||||
const val DIGIO_EVENT = "DIGIO_EVENT"
|
||||
const val DIGIO_TRANSACTION_ID = "DIGIO_TRANSACTION_ID"
|
||||
const val DIGIO_ENTITY = "DIGIO_ENTITY"
|
||||
const val DIGIO_DOCUMENT_ID = "DIGIO_DOCUMENT_ID"
|
||||
const val DIGIO_IDENTIFIER = "DIGIO_IDENTIFIER"
|
||||
const val DOCUMENT_CAPTURE_CAMERA_CLICK = "DOCUMENT_CAPTURE_CAMERA_CLICK"
|
||||
|
||||
// DIGIO
|
||||
const val DEV_DIGIO_INIT_FAILURE = "dev_digio_init_failure"
|
||||
const val FAILURE_REASON = "reason"
|
||||
const val DEV_DIGIO_E_SIGN = "dev_digio_e_sign"
|
||||
const val DEV_RAZORPAY_START_PAYMENT = "dev_razorpay_start_payment"
|
||||
const val DIGIO_GATEWAY_EVENT = "DIGIO_GATEWAY_EVENT"
|
||||
|
||||
// Dev Logs
|
||||
const val SCREEN_LANDS = "screen_lands"
|
||||
|
||||
Reference in New Issue
Block a user