正在查看: Chaupal v3.2 应用的 CheckoutBridge.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Chaupal v3.2 应用的 CheckoutBridge.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.razorpay;
import android.webkit.JavascriptInterface;
import com.razorpay.C0214c;
import com.razorpay.y;
class CheckoutBridge {
private String integratedPlugin;
CheckoutInteractor interactor;
private boolean isRegistered = true;
private int webViewType;
interface WebViewSafeCheckCallback {
void secure();
void unSecure();
}
CheckoutBridge(CheckoutInteractor checkoutInteractor, int i) {
this.interactor = checkoutInteractor;
this.webViewType = i;
}
@JavascriptInterface
public final void callNativeIntent(final String str) {
isWebViewSafeOnUI(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.callNativeIntent(str, null);
}
@Override
public final void unSecure() {
}
});
}
@JavascriptInterface
public final void getDownloadFileString(final String str, final String str2, final String str3) {
isWebViewSafeOnUI(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.getDownloadFileString(str2, str, str3);
}
@Override
public final void unSecure() {
}
});
}
@JavascriptInterface
public final void getPdfString(String str, String str2) {
isWebViewSafe(new y._O_(this, str, str2));
}
@JavascriptInterface
public final String getSdkPlugins() {
isWebViewSafe(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge checkoutBridge = CheckoutBridge.this;
checkoutBridge.integratedPlugin = checkoutBridge.interactor.getSdkPlugins();
}
@Override
public final void unSecure() {
}
});
return this.integratedPlugin;
}
@JavascriptInterface
public void invokePopup(final String str) {
this.interactor.invokePopup(str);
isWebViewSafeOnUI(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.invokePopup(str);
}
@Override
public final void unSecure() {
}
});
}
@JavascriptInterface
public final boolean isUserRegistered(final String str) {
isWebViewSafe(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge checkoutBridge = CheckoutBridge.this;
checkoutBridge.isRegistered = checkoutBridge.interactor.isUserRegistered(str);
}
@Override
public final void unSecure() {
}
});
return this.isRegistered;
}
@JavascriptInterface
public final boolean isUserRegisteredOnUPI(final String str) {
isWebViewSafe(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge checkoutBridge = CheckoutBridge.this;
checkoutBridge.isRegistered = checkoutBridge.interactor.isUserRegisteredOnUPI(str);
}
@Override
public final void unSecure() {
}
});
return this.isRegistered;
}
void isWebViewSafe(WebViewSafeCheckCallback webViewSafeCheckCallback) {
this.interactor.isWebViewSafe(this.webViewType, webViewSafeCheckCallback);
}
void isWebViewSafeOnUI(WebViewSafeCheckCallback webViewSafeCheckCallback) {
this.interactor.isWebViewSafeOnUI(this.webViewType, webViewSafeCheckCallback);
}
@JavascriptInterface
public void onCheckoutBackPress() {
isWebViewSafeOnUI(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.onCheckoutBackPress();
}
@Override
public final void unSecure() {
}
});
}
@JavascriptInterface
public final void onCheckoutRendered() {
isWebViewSafe(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.onCheckoutRendered();
}
@Override
public final void unSecure() {
}
});
}
@JavascriptInterface
public final void oncomplete(final String str) {
isWebViewSafeOnUI(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.onComplete(str);
}
@Override
public final void unSecure() {
}
});
}
@JavascriptInterface
public final void ondismiss() {
isWebViewSafeOnUI(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.onDismiss();
}
@Override
public final void unSecure() {
}
});
}
@JavascriptInterface
public final void onerror(final String str) {
isWebViewSafeOnUI(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.onError(str);
}
@Override
public final void unSecure() {
}
});
}
@JavascriptInterface
public final void onfault(final String str) {
isWebViewSafeOnUI(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.onFault(str);
}
@Override
public final void unSecure() {
}
});
}
@JavascriptInterface
public final void onload() {
isWebViewSafeOnUI(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.onLoad();
}
@Override
public final void unSecure() {
}
});
}
@JavascriptInterface
public final void onsubmit(String str) {
isWebViewSafeOnUI(new h__y_(this, str));
}
@JavascriptInterface
public final void registerSmsListener() {
isWebViewSafe(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.registerSmsListener();
}
@Override
public final void unSecure() {
}
});
}
@JavascriptInterface
public final void relay(final String str) {
isWebViewSafeOnUI(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.sendDataToWebView(2, str);
}
@Override
public final void unSecure() {
}
});
}
@JavascriptInterface
public final void requestExtraAnalyticsData() {
isWebViewSafeOnUI(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.requestExtraAnalyticsData();
}
@Override
public final void unSecure() {
}
});
}
@JavascriptInterface
public final void setAppToken(final String str) {
this.interactor.setAppToken(str);
isWebViewSafeOnUI(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.setAppToken(str);
}
@Override
public final void unSecure() {
}
});
}
@JavascriptInterface
public final void setDeviceToken(final String str) {
isWebViewSafeOnUI(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.setDeviceToken(str);
}
@Override
public final void unSecure() {
}
});
}
@JavascriptInterface
public final void setDimensions(final int i, final int i2) {
isWebViewSafeOnUI(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.setDimensions(i, i2);
}
@Override
public final void unSecure() {
}
});
}
@JavascriptInterface
public final void setMerchantOptions(String str) {
isWebViewSafeOnUI(new O__Y_(this, str));
}
@JavascriptInterface
public final void setPaymentID(String str) {
isWebViewSafeOnUI(new C0214c._2_(this, str));
}
@JavascriptInterface
public final void showAlertDialog(final String str, final String str2, final String str3) {
isWebViewSafeOnUI(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.showAlertDialog(str, str2, str3);
}
@Override
public final void unSecure() {
}
});
}
@JavascriptInterface
public final void toast(final String str, final int i) {
isWebViewSafeOnUI(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.toast(str, i);
}
@Override
public final void unSecure() {
}
});
}
@JavascriptInterface
public final void unregisterSmsListener() {
isWebViewSafe(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.unregisterSmsListener();
}
@Override
public final void unSecure() {
}
});
}
@JavascriptInterface
public final void callNativeIntent(final String str, final String str2) {
isWebViewSafeOnUI(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.callNativeIntent(str, str2);
}
@Override
public final void unSecure() {
}
});
}
@JavascriptInterface
public final void ondismiss(final String str) {
isWebViewSafeOnUI(new WebViewSafeCheckCallback() {
@Override
public final void secure() {
CheckoutBridge.this.interactor.onDismiss(str);
}
@Override
public final void unSecure() {
}
});
}
}