|
|
@ -33,11 +33,13 @@ class StepFiveNiveshFDFragment : Fragment() { |
|
|
|
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { |
|
|
|
super.onViewCreated(view, savedInstanceState) |
|
|
|
|
|
|
|
binding.tvCongrats.text = "" |
|
|
|
binding.tvSuccessMessage.text = "" |
|
|
|
binding.btnViewOrder.setOnClickListener { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
binding.tvRetry.setOnClickListener{ |
|
|
|
(activity as NiveshFdMainActivity).retryMethod() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
fun getData(paymentReQueryResponse: PaymentReQueryResponse) { |
|
|
@ -55,16 +57,21 @@ class StepFiveNiveshFDFragment : Fragment() { |
|
|
|
} |
|
|
|
}else{ |
|
|
|
if (paymentReQueryResponse.Response.Message.isNotEmpty()) { |
|
|
|
val arrOfStr: List<String> = paymentReQueryResponse.Response.Message.split(" ", limit = 2) |
|
|
|
binding.tvCongrats.text = arrOfStr[0] |
|
|
|
binding.tvCongrats.setTextColor( |
|
|
|
ContextCompat.getColor( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
R.color.red |
|
|
|
if (paymentReQueryResponse.Response.Message.isNotEmpty()) { |
|
|
|
val arrOfStr: List<String> = |
|
|
|
paymentReQueryResponse.Response.Message.split(" ", limit = 2) |
|
|
|
binding.tvCongrats.text = arrOfStr[0] |
|
|
|
binding.tvCongrats.setTextColor( |
|
|
|
ContextCompat.getColor( |
|
|
|
activity as NiveshFdMainActivity, |
|
|
|
R.color.red |
|
|
|
) |
|
|
|
) |
|
|
|
) |
|
|
|
binding.tvSuccessMessage.text = arrOfStr[1] |
|
|
|
binding.tvSuccessMessage.text = arrOfStr[1] |
|
|
|
} |
|
|
|
} |
|
|
|
binding.tvRetry.visibility = View.VISIBLE |
|
|
|
binding.btnViewOrder.visibility = View.GONE |
|
|
|
} |
|
|
|
finalizeFDApi() |
|
|
|
finalizeKYCApi() |
|
|
@ -164,8 +171,6 @@ class StepFiveNiveshFDFragment : Fragment() { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
override fun onDestroyView() { |
|
|
|
super.onDestroyView() |
|
|
|
_binding = null |
|
|
|