TP-54688 | 5XX Fix On Member Name DOB Screen (#9412)
This commit is contained in:
committed by
GitHub
parent
44956032f7
commit
8c1c4e5821
@@ -171,6 +171,7 @@ class PaymentActivity :
|
||||
private val methodPayUError = "onPayUPaymentError"
|
||||
private val methodRazorPayError = "onPaymentError"
|
||||
private var paymentSuccessCta: CtaData? = null
|
||||
private var isPaymentSuccess = false
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
@@ -435,6 +436,7 @@ class PaymentActivity :
|
||||
setResultForFallbackAndFinish(it.fallbackCta)
|
||||
} else {
|
||||
if (it.status == SUCCESS) {
|
||||
isPaymentSuccess = true
|
||||
paymentSuccess()
|
||||
} else if (it.status == PROCESSING && paymentVM.paymentReferenceId != null) {
|
||||
paymentProcessing(it, paymentVM.paymentReferenceId)
|
||||
@@ -1588,7 +1590,15 @@ class PaymentActivity :
|
||||
Pair(NaviInsuranceAnalytics.APPLICATION_TYPE, applicationType.orEmpty())
|
||||
)
|
||||
)
|
||||
if (handleBackPress) {
|
||||
if (isPaymentSuccess && paymentSuccessCta != null) {
|
||||
paymentSuccessCta?.let { ctaData ->
|
||||
NaviInsuranceDeeplinkNavigator.navigate(
|
||||
this,
|
||||
ctaData, finish = ctaData.finish.orTrue(), clearTask = ctaData.finish.orFalse()
|
||||
)
|
||||
}
|
||||
}
|
||||
else if (handleBackPress) {
|
||||
super.onBackPressed()
|
||||
}
|
||||
}
|
||||
@@ -1622,4 +1632,4 @@ class PaymentActivity :
|
||||
}
|
||||
return null
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user