NTP-14226 | tribute refactor (#13736)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user