NTP-55930 | PS | fix coin apply issue on NPS with one-cc (#15790)
This commit is contained in:
@@ -220,7 +220,6 @@ constructor(
|
||||
this.category = category
|
||||
this.tenantFlowName = tenantFlowName
|
||||
this.blacklistedMethodList = blacklistedMethodList
|
||||
initializePaymentSession(source.name)
|
||||
viewModelScope.safeLaunch {
|
||||
if (isOneClickCheckoutExperienceEnabled()) {
|
||||
linkedAccountChangeObserver()
|
||||
@@ -281,7 +280,10 @@ constructor(
|
||||
}
|
||||
}
|
||||
|
||||
private fun handleNaviUpiResultReceived(result: ActivityResult, generateToken: () -> Unit) {
|
||||
private suspend fun handleNaviUpiResultReceived(
|
||||
result: ActivityResult,
|
||||
generateToken: () -> Unit,
|
||||
) {
|
||||
val resultResponse = result.data?.extras?.getString(NAVI_PAY_RESPONSE)
|
||||
val payloadJson = resultResponse.stringToJsonObject()
|
||||
naviPaymentAnalytics.redirectionFromNaviUpi(
|
||||
@@ -658,7 +660,8 @@ constructor(
|
||||
}
|
||||
}
|
||||
|
||||
private fun triggerTokenGeneration(generateToken: () -> Unit) {
|
||||
private suspend fun triggerTokenGeneration(generateToken: () -> Unit) {
|
||||
initializePaymentSession(paymentSource?.name.orEmpty())
|
||||
naviPaymentAnalytics.onTriggeringTokenGeneration(
|
||||
amount = state.value.amount.value.toString(),
|
||||
paymentSource = paymentSource?.name.orEmpty(),
|
||||
|
||||
Reference in New Issue
Block a user