NTP-4226 | Shiv Natani | Razorpay-SDK-Update (#12693)
This commit is contained in:
@@ -112,7 +112,7 @@ philjay-mpAndroidChart = "v3.1.0"
|
||||
pierfrancescosoffritti-androidyoutubeplayer = "11.1.0"
|
||||
profileinstaller = "1.3.1"
|
||||
raamcosta-composeDestinations = "1.10.2"
|
||||
razorpay = "1.6.33"
|
||||
razorpay = "1.6.41"
|
||||
retrofit = "2.11.0"
|
||||
room = "2.5.2"
|
||||
shawnLin-numberPicker = "2.4.13"
|
||||
|
||||
@@ -26,6 +26,7 @@ import com.navi.common.model.ModuleNameV2
|
||||
import com.navi.common.ui.activity.BaseActivity
|
||||
import com.navi.common.utils.Constants
|
||||
import com.navi.payment.R
|
||||
import com.navi.payment.analytics.NaviPaymentScreenAnalytics
|
||||
import com.navi.payment.databinding.ActivityNaviPaymentScreenBinding
|
||||
import com.navi.payment.juspay.HyperServicesHolder
|
||||
import com.navi.payment.juspay.JusPayUtil
|
||||
@@ -59,6 +60,7 @@ class NaviPaymentScreenActivity :
|
||||
@Inject lateinit var paymentScreenController: PaymentScreenController
|
||||
private val paymentManager by lazy { ViewModelProvider(this)[PaymentManager::class.java] }
|
||||
private var paymentStatus: String? = null
|
||||
private var analytics = NaviPaymentScreenAnalytics.NaviScreenBaseAnalytics()
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
@@ -216,6 +218,18 @@ class NaviPaymentScreenActivity :
|
||||
provider: String,
|
||||
status: String? = null
|
||||
) {
|
||||
analytics.sendEvent(
|
||||
eventName = "navi_pmt_sdk_response",
|
||||
eventProperties =
|
||||
mapOf(
|
||||
"code" to code.orEmpty(),
|
||||
"orderID" to orderID.orEmpty(),
|
||||
"description" to description.orEmpty(),
|
||||
"paymentId" to paymentId.orEmpty(),
|
||||
"provider" to provider,
|
||||
"status" to status.orEmpty()
|
||||
)
|
||||
)
|
||||
paymentStatus = status
|
||||
val clientStatus =
|
||||
if (status == PaymentSdkTypes.TRANSACTION_SUCCESS.name) {
|
||||
|
||||
Reference in New Issue
Block a user