TP-49806 | Shankar | Fix signal api call on pms pending bottomsheet (#9836)
This commit is contained in:
@@ -69,6 +69,7 @@ import androidx.fragment.app.viewModels
|
||||
import com.navi.naviwidgets.models.LottieFieldData
|
||||
import com.navi.naviwidgets.utils.LottieEnums
|
||||
import com.navi.payment.listener.PaymentSuccessListener
|
||||
import com.navi.payment.navigator.NaviPaymentDeeplinkNavigator
|
||||
import com.navi.payment.paymentscreen.composables.PaymentErrorScreen
|
||||
import com.navi.payment.paymentscreen.model.TransactionStatusResponseMetaData
|
||||
import com.navi.payment.utils.Constants.CHANNEL_PL
|
||||
@@ -386,6 +387,9 @@ class PaymentLoaderFragment : PaymentScreenBaseFragment(), PaymentBackListener {
|
||||
}
|
||||
|
||||
else -> {
|
||||
if (ctaData?.url == NaviPaymentDeeplinkNavigator.HOME && viewModel.signalStatusApiCallStatus.value == false) {
|
||||
postPaymentStatus(viewModel.getUpdatedSdkAction())
|
||||
}
|
||||
listener?.navigateToNextScreenWithCaching(
|
||||
currentScreenTag = ctaData?.url.orEmpty(),
|
||||
bundle = Bundle()
|
||||
@@ -454,6 +458,9 @@ class PaymentLoaderFragment : PaymentScreenBaseFragment(), PaymentBackListener {
|
||||
}
|
||||
|
||||
override fun onCancelDialog() {
|
||||
if (viewModel.signalStatusApiCallStatus.value == false) {
|
||||
postPaymentStatus(viewModel.getUpdatedSdkAction())
|
||||
}
|
||||
postResultAndFinish(transactionStatusResponseData, TRANSACTION_PENDING)
|
||||
}
|
||||
},
|
||||
@@ -503,9 +510,6 @@ class PaymentLoaderFragment : PaymentScreenBaseFragment(), PaymentBackListener {
|
||||
ApiPollScheduler(
|
||||
doOnTimeout = {
|
||||
openPendingBottomSheet(viewModel.transactionStatusResponse.value?.data)
|
||||
if (viewModel.signalStatusApiCallStatus.value == false) {
|
||||
postPaymentStatus(viewModel.getUpdatedSdkAction())
|
||||
}
|
||||
},
|
||||
numberOfRetry = requestConfig?.numOfRetries
|
||||
?: ApiPollScheduler.API_POLL_RETRY_COUNT,
|
||||
@@ -532,7 +536,6 @@ class PaymentLoaderFragment : PaymentScreenBaseFragment(), PaymentBackListener {
|
||||
ApiPollScheduler(
|
||||
doOnTimeout = {
|
||||
openPendingBottomSheet(viewModel.transactionStatusResponse.value?.data)
|
||||
postPaymentStatus(viewModel.getUpdatedSdkAction())
|
||||
},
|
||||
numberOfRetry = requestConfig?.numOfRetries
|
||||
?: ApiPollScheduler.API_POLL_RETRY_COUNT,
|
||||
|
||||
Reference in New Issue
Block a user