NTP-14226 | tribute refactor (#13736)

This commit is contained in:
Shiv Natani
2024-11-22 13:53:13 +05:30
committed by GitHub
parent f05f0c8054
commit 5a0a9ae945

View File

@@ -281,7 +281,7 @@ class NaviPaymentWebBridge(
}
@JavascriptInterface
fun startUpiIntentPayment(naviUpiUriKey: String, appPackageName: String, callback: String) {
fun startUpiIntentPayment(intentUri: String, appPackageName: String, callback: String) {
naviPayAnalytics.sendEvent(
"NaviPmt_${NaviPaymentAnalyticScreenName.WEB_PAYMENT_SCREEN}_Redirection_From_Webview",
mapOf(WEB_PAY_ACTION to WebPaymentAction.WEB_VIEW_SET_PIN.name)
@@ -290,7 +290,7 @@ class NaviPaymentWebBridge(
if (isValidHostName(::startUpiIntentPayment.name)) {
try {
webCallBack = callback
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(naviUpiUriKey))
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(intentUri))
intent.setPackage(appPackageName)
upiIntentResultLauncher.launch(intent)
} catch (e: Exception) {