导航菜单

页面标题

页面副标题

RummyCircle v11000.89 - CashfreeNativeCheckoutActivity.java 源代码

正在查看: RummyCircle v11000.89 应用的 CashfreeNativeCheckoutActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.cashfree.pg.ui.hidden.checkout;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.nfc.NfcAdapter;
import android.nfc.NfcManager;
import android.nfc.Tag;
import android.os.Bundle;
import android.view.MenuItem;
import android.widget.ProgressBar;
import android.widget.Toast;
import androidx.activity.F;
import androidx.annotation.NonNull;
import androidx.appcompat.widget.LinearLayoutCompat;
import androidx.camera.camera2.internal.D;
import androidx.camera.camera2.internal.RunnableC0214i;
import androidx.camera.camera2.internal.RunnableC0226o;
import androidx.camera.camera2.internal.RunnableC0235t;
import androidx.camera.camera2.internal.RunnableC0238u0;
import androidx.camera.camera2.internal.Y0;
import androidx.camera.camera2.internal.compat.m;
import androidx.camera.camera2.internal.compat.workaround.p;
import androidx.camera.camera2.internal.l1;
import androidx.camera.core.G;
import androidx.camera.core.impl.C0270b0;
import androidx.camera.view.j;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import com.cashfree.pg.base.logger.CFLoggerService;
import com.cashfree.pg.core.api.CFCorePaymentGatewayService;
import com.cashfree.pg.core.api.CFTheme;
import com.cashfree.pg.core.api.base.CFPayment;
import com.cashfree.pg.core.api.card.vault.DeleteSavedCardResponse;
import com.cashfree.pg.core.api.card.vault.SavedCardsResponse;
import com.cashfree.pg.core.api.exception.CFException;
import com.cashfree.pg.core.api.persistence.CFPersistence;
import com.cashfree.pg.core.api.state.PaymentMode;
import com.cashfree.pg.core.api.ui.PaymentInitiationData;
import com.cashfree.pg.core.api.ui.dialog.PVBottomSheetDialog;
import com.cashfree.pg.core.api.utils.AnalyticsUtil;
import com.cashfree.pg.core.api.utils.CFErrorResponse;
import com.cashfree.pg.core.api.utils.CFUPIApp;
import com.cashfree.pg.core.api.utils.CFUPIUtil;
import com.cashfree.pg.core.api.utils.CFUtil;
import com.cashfree.pg.core.api.utils.ThreadUtil;
import com.cashfree.pg.core.hidden.analytics.UserEvents;
import com.cashfree.pg.core.hidden.network.response.models.ConfigResponse;
import com.cashfree.pg.core.hidden.network.response.models.config.EmiOption;
import com.cashfree.pg.core.hidden.network.response.models.config.OrderDetails;
import com.cashfree.pg.core.hidden.network.response.models.config.PaymentModes;
import com.cashfree.pg.core.hidden.network.response.models.config.PaymentOption;
import com.cashfree.pg.core.hidden.nfc.NfcCardReader;
import com.cashfree.pg.core.hidden.nfc.NfcCardResponse;
import com.cashfree.pg.core.hidden.utils.CFPaymentModes;
import com.cashfree.pg.network.NetworkConnectivityUtil;
import com.cashfree.pg.ui.R;
import com.cashfree.pg.ui.api.CFDropCheckoutPayment;
import com.cashfree.pg.ui.hidden.activity.INativePaymentCheckoutEvents;
import com.cashfree.pg.ui.hidden.activity.base.BaseActivity;
import com.cashfree.pg.ui.hidden.channel.CFNativeCallbackEventBus;
import com.cashfree.pg.ui.hidden.channel.CFNativeCallbackEventBus$CFPaymentCallbackEvent;
import com.cashfree.pg.ui.hidden.channel.CFNativeCallbackEvents;
import com.cashfree.pg.ui.hidden.checkout.CashfreeNativeCheckoutActivity;
import com.cashfree.pg.ui.hidden.checkout.callbacks.CFNativeCoreCallbacks;
import com.cashfree.pg.ui.hidden.checkout.dialog.EmiInfoBottomSheetDialog;
import com.cashfree.pg.ui.hidden.checkout.dialog.ExitDialog;
import com.cashfree.pg.ui.hidden.checkout.dialog.NBAppsBottomSheetDialog;
import com.cashfree.pg.ui.hidden.checkout.dialog.QRDialog;
import com.cashfree.pg.ui.hidden.checkout.dialog.QuickCheckoutBottomSheetDialog;
import com.cashfree.pg.ui.hidden.checkout.dialog.SavedCardDeleteBottomSheetDialog;
import com.cashfree.pg.ui.hidden.checkout.dialog.UPIAppsBottomSheetDialog;
import com.cashfree.pg.ui.hidden.checkout.subview.ToolbarView;
import com.cashfree.pg.ui.hidden.checkout.subview.payment.CardView;
import com.cashfree.pg.ui.hidden.checkout.subview.payment.EMIView;
import com.cashfree.pg.ui.hidden.checkout.subview.payment.NetBankingView;
import com.cashfree.pg.ui.hidden.checkout.subview.payment.PayLaterView;
import com.cashfree.pg.ui.hidden.checkout.subview.payment.PaymentView;
import com.cashfree.pg.ui.hidden.checkout.subview.payment.UPIView;
import com.cashfree.pg.ui.hidden.checkout.subview.payment.WalletView;
import com.cashfree.pg.ui.hidden.checkout.subview.savedcards.SavedCardView;
import com.cashfree.pg.ui.hidden.dao.NativeCheckoutDAO;
import com.cashfree.pg.ui.hidden.dao.QuickCheckoutDAO;
import com.cashfree.pg.ui.hidden.persistence.CFUIPersistence;
import com.cashfree.pg.ui.hidden.utils.AnalyticsConstants;
import com.cashfree.pg.ui.hidden.utils.ErrorCode;
import com.cashfree.pg.ui.hidden.viewModel.BaseViewModel;
import com.cashfree.pg.ui.hidden.viewModel.NativeCheckoutViewModel;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;

public class CashfreeNativeCheckoutActivity extends BaseActivity implements INativePaymentCheckoutEvents, UPIView.UPIViewEvents, NetBankingView.NBViewEvents, PVBottomSheetDialog.PaymentVerificationListener, WalletView.WalletViewEvents, PayLaterView.PayLaterViewEvents, CardView.CardViewEvents, QuickCheckoutDAO.QuickCheckoutListener, QuickCheckoutBottomSheetDialog.QuickCheckoutListener, EMIView.EMIViewEvents, NativeCheckoutDAO.FetchSavedCardsResponseListener, SavedCardView.SavedCardViewEvents {
    public static final String ANDROID_NFC_ACTION_ADAPTER_STATE_CHANGED = "android.nfc.action.ADAPTER_STATE_CHANGED";
    private static final String TAG = "CashfreeNativeCheckoutActivity";
    private CardView cardView;
    private CFTheme cfTheme;
    private EmiInfoBottomSheetDialog emiInfoDialog;
    private EMIView emiView;
    private androidx.appcompat.app.c exitDialog;
    private boolean isCreated;
    private LinearLayoutCompat llContentScrolling;
    private CoordinatorLayout loader;
    private NativeCheckoutViewModel nativeCheckoutViewModel;
    private NBAppsBottomSheetDialog nbAppsDialog;
    private NetBankingView netBankingView;
    private NfcCardManager nfcCardManager;
    private NfcCardReader nfcCardReader;
    private PayLaterView payLaterView;
    private PaymentInitiationData paymentInitiationData;
    private QRDialog qrDialog;
    private QuickCheckoutBottomSheetDialog quickCheckoutDialog;
    private SavedCardDeleteBottomSheetDialog savedCardDeleteDialog;
    private SavedCardView savedCardView;
    private ToolbarView toolbarView;
    private UPIAppsBottomSheetDialog upiAppsDialog;
    private UPIView upiView;
    private WalletView walletView;
    private boolean isResponseSent = false;
    private boolean quickCheckoutEnabled = true;
    public final CFNativeCoreCallbacks cfNativeCoreCallbacks = new AnonymousClass1();

    public class AnonymousClass1 extends CFNativeCoreCallbacks {
        public AnonymousClass1() {
        }

        public void lambda$onPaymentFailure$0(CFErrorResponse cFErrorResponse) {
            CashfreeNativeCheckoutActivity.this.hideLoader();
            CashfreeNativeCheckoutActivity.this.handleError(cFErrorResponse);
        }

        public void lambda$onQRFetched$1(String str) {
            CashfreeNativeCheckoutActivity.this.hideLoader();
            CashfreeNativeCheckoutActivity.this.showQRCodeDialog(str);
        }

        @Override
        public void onPaymentFailure(final CFErrorResponse cFErrorResponse, String str) {
            ThreadUtil.runOnUIThread(new Runnable() {
                @Override
                public final void run() {
                    CashfreeNativeCheckoutActivity.AnonymousClass1.this.lambda$onPaymentFailure$0(cFErrorResponse);
                }
            });
        }

        @Override
        public void onQRFetched(final String str) {
            ThreadUtil.runOnUIThread(new Runnable() {
                @Override
                public final void run() {
                    CashfreeNativeCheckoutActivity.AnonymousClass1.this.lambda$onQRFetched$1(str);
                }
            });
        }

        @Override
        public void onVerifyPayment(String str) {
            CashfreeNativeCheckoutActivity.this.sendVerify(str);
        }
    }

    public class AnonymousClass19 implements NativeCheckoutDAO.DeleteSavedCardResponseListener {
        final String val$instrumentID;

        public AnonymousClass19(String str) {
            this.val$instrumentID = str;
        }

        public void lambda$onSavedCardDeleteFailure$1() {
            CashfreeNativeCheckoutActivity.this.savedCardDeleteDialog.dismiss();
        }

        public void lambda$onSavedCardDeleteSuccess$0(String str) {
            CashfreeNativeCheckoutActivity.this.savedCardDeleteDialog.dismiss();
            CashfreeNativeCheckoutActivity.this.savedCardView.updateSavedCardViewAfterDelete(str);
        }

        @Override
        public void onSavedCardDeleteFailure(CFErrorResponse cFErrorResponse) {
            CashfreeNativeCheckoutActivity.this.runOnUiThread(new Runnable() {
                @Override
                public final void run() {
                    CashfreeNativeCheckoutActivity.AnonymousClass19.this.lambda$onSavedCardDeleteFailure$1();
                }
            });
        }

        @Override
        public void onSavedCardDeleteSuccess(DeleteSavedCardResponse deleteSavedCardResponse) {
            CashfreeNativeCheckoutActivity.this.runOnUiThread(new c(this, this.val$instrumentID, 0));
        }
    }

    public static class AnonymousClass20 {
        static final int[] $SwitchMap$com$cashfree$pg$core$hidden$utils$CFPaymentModes;
        static final int[] $SwitchMap$com$cashfree$pg$ui$hidden$utils$ErrorCode;

        static {
            int[] iArr = new int[CFPaymentModes.values().length];
            $SwitchMap$com$cashfree$pg$core$hidden$utils$CFPaymentModes = iArr;
            try {
                iArr[CFPaymentModes.UPI.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                $SwitchMap$com$cashfree$pg$core$hidden$utils$CFPaymentModes[CFPaymentModes.EMI.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                $SwitchMap$com$cashfree$pg$core$hidden$utils$CFPaymentModes[CFPaymentModes.NB.ordinal()] = 3;
            } catch (NoSuchFieldError unused3) {
            }
            try {
                $SwitchMap$com$cashfree$pg$core$hidden$utils$CFPaymentModes[CFPaymentModes.WALLET.ordinal()] = 4;
            } catch (NoSuchFieldError unused4) {
            }
            try {
                $SwitchMap$com$cashfree$pg$core$hidden$utils$CFPaymentModes[CFPaymentModes.PAY_LATER.ordinal()] = 5;
            } catch (NoSuchFieldError unused5) {
            }
            try {
                $SwitchMap$com$cashfree$pg$core$hidden$utils$CFPaymentModes[CFPaymentModes.CARD.ordinal()] = 6;
            } catch (NoSuchFieldError unused6) {
            }
            int[] iArr2 = new int[ErrorCode.values().length];
            $SwitchMap$com$cashfree$pg$ui$hidden$utils$ErrorCode = iArr2;
            try {
                iArr2[ErrorCode.upi_id_invalid.ordinal()] = 1;
            } catch (NoSuchFieldError unused7) {
            }
            try {
                $SwitchMap$com$cashfree$pg$ui$hidden$utils$ErrorCode[ErrorCode.card_holder_name_invalid.ordinal()] = 2;
            } catch (NoSuchFieldError unused8) {
            }
            try {
                $SwitchMap$com$cashfree$pg$ui$hidden$utils$ErrorCode[ErrorCode.card_number_invalid.ordinal()] = 3;
            } catch (NoSuchFieldError unused9) {
            }
            try {
                $SwitchMap$com$cashfree$pg$ui$hidden$utils$ErrorCode[ErrorCode.phone_ineligible.ordinal()] = 4;
            } catch (NoSuchFieldError unused10) {
            }
            try {
                $SwitchMap$com$cashfree$pg$ui$hidden$utils$ErrorCode[ErrorCode.payment_failed_headless.ordinal()] = 5;
            } catch (NoSuchFieldError unused11) {
            }
            try {
                $SwitchMap$com$cashfree$pg$ui$hidden$utils$ErrorCode[ErrorCode.action_cancelled.ordinal()] = 6;
            } catch (NoSuchFieldError unused12) {
            }
        }
    }

    private PaymentView addView(ConfigResponse configResponse, CFPaymentModes cFPaymentModes, ArrayList<CFUPIApp> arrayList) {
        PaymentModes paymentModes = configResponse.getPaymentModes();
        switch (AnonymousClass20.$SwitchMap$com$cashfree$pg$core$hidden$utils$CFPaymentModes[cFPaymentModes.ordinal()]) {
            case 1:
                boolean isUPICollectEnable = paymentModes.isUPICollectEnable();
                boolean isUPIQRModeEnable = paymentModes.isUPIQRModeEnable();
                if ((isUPICollectEnable || ((arrayList != null && !arrayList.isEmpty()) || getResources().getBoolean(R.bool.isDeviceTablet))) && this.upiView == null) {
                    this.upiView = new UPIView(this.llContentScrolling, configResponse.getOrderDetails(), isUPICollectEnable, isUPIQRModeEnable, this.cfTheme, arrayList, this);
                }
                return this.upiView;
            case 2:
                if (this.emiView == null && !paymentModes.getEMI().isEmpty()) {
                    this.emiView = new EMIView(this.llContentScrolling, configResponse.getOrderDetails(), paymentModes.getEMI(), this.cfTheme, this);
                }
                return this.emiView;
            case 3:
                if (this.netBankingView == null && !paymentModes.getNetBanking().isEmpty()) {
                    this.netBankingView = new NetBankingView(this.llContentScrolling, paymentModes.getNetBanking(), configResponse.getOrderDetails(), this.cfTheme, this);
                }
                return this.netBankingView;
            case 4:
                if (this.walletView == null && !paymentModes.getWallet().isEmpty()) {
                    this.walletView = new WalletView(this.llContentScrolling, paymentModes.getWallet(), configResponse.getOrderDetails(), configResponse.getCustomerDetails(), this.cfTheme, this);
                }
                return this.walletView;
            case 5:
                if (this.payLaterView == null && !paymentModes.getPayLater().isEmpty()) {
                    this.payLaterView = new PayLaterView(this.llContentScrolling, paymentModes.getPayLater(), configResponse.getOrderDetails(), configResponse.getCustomerDetails(), this.cfTheme, this);
                }
                return this.payLaterView;
            case 6:
                if (this.cardView == null && !paymentModes.getCard().isEmpty()) {
                    this.cardView = new CardView(this.llContentScrolling, configResponse.getOrderDetails(), this.cfTheme, configResponse.getFeatureConfig(), this);
                }
                return this.cardView;
            default:
                return null;
        }
    }

    private CFErrorResponse checkAndGetPaymentModeError(CFPaymentModes cFPaymentModes, PaymentModes paymentModes, ArrayList<CFUPIApp> arrayList) {
        int i = AnonymousClass20.$SwitchMap$com$cashfree$pg$core$hidden$utils$CFPaymentModes[cFPaymentModes.ordinal()];
        if (i != 1) {
            if (i == 2 && paymentModes.getEMI().isEmpty()) {
                return CFUtil.getErrorForNoPaymentMode(cFPaymentModes.name());
            }
        } else if (paymentModes.getUpi().isEmpty() && (arrayList == null || arrayList.isEmpty())) {
            return CFUtil.getErrorForNoPaymentMode(cFPaymentModes.name());
        }
        return null;
    }

    public void handleError(CFErrorResponse cFErrorResponse) {
        switch (AnonymousClass20.$SwitchMap$com$cashfree$pg$ui$hidden$utils$ErrorCode[ErrorCode.getCode(cFErrorResponse.getCode()).ordinal()]) {
            case 1:
                UPIView uPIView = this.upiView;
                if (uPIView != null) {
                    uPIView.setUpiIdInvalid();
                }
                AnalyticsUtil.addEvent(UserEvents.cfevent_payment_processing_error, new HashMap<String, String>(cFErrorResponse) {
                    final CFErrorResponse val$cfErrorResponse;

                    {
                        this.val$cfErrorResponse = cFErrorResponse;
                        put(AnalyticsConstants.PAYMENT_MODE, AnalyticsConstants.UPI);
                        put("channel", CashfreeNativeCheckoutActivity.this.paymentInitiationData.getId());
                        put(AnalyticsConstants.PAYMENT_METHOD, AnalyticsConstants.COLLECT);
                        put("error_code", cFErrorResponse.getCode());
                        put("error_message", cFErrorResponse.getMessage());
                    }
                });
                AnalyticsUtil.addEvent(UserEvents.cfevent_payment_ended, new HashMap<String, String>() {
                    {
                        put(AnalyticsConstants.PAYMENT_MODE, AnalyticsConstants.UPI);
                        put("channel", AnalyticsConstants.UPI);
                        put(AnalyticsConstants.PAYMENT_ATTEMPT_STATUS, AnalyticsConstants.CANCELLED);
                    }
                });
                break;
            case 2:
                CardView cardView = this.cardView;
                if (cardView != null) {
                    cardView.setCardHolderInvalid();
                }
                AnalyticsUtil.addEvent(UserEvents.cfevent_payment_processing_error, new HashMap<String, String>(cFErrorResponse) {
                    final CFErrorResponse val$cfErrorResponse;

                    {
                        this.val$cfErrorResponse = cFErrorResponse;
                        put(AnalyticsConstants.PAYMENT_MODE, PaymentMode.CARD.name());
                        put("error_code", cFErrorResponse.getCode());
                        put("error_message", cFErrorResponse.getMessage());
                    }
                });
                AnalyticsUtil.addEvent(UserEvents.cfevent_payment_ended, new HashMap<String, String>() {
                    {
                        put(AnalyticsConstants.PAYMENT_MODE, CashfreeNativeCheckoutActivity.this.paymentInitiationData.getPaymentMode().name());
                        if (CashfreeNativeCheckoutActivity.this.paymentInitiationData.getName() != null && !CashfreeNativeCheckoutActivity.this.paymentInitiationData.getName().isEmpty()) {
                            put(AnalyticsConstants.PAYMENT_METHOD, CashfreeNativeCheckoutActivity.this.paymentInitiationData.getName());
                        }
                        put(AnalyticsConstants.PAYMENT_ATTEMPT_STATUS, AnalyticsConstants.CANCELLED);
                    }
                });
                CFPersistence.getInstance().clearTxnID();
                break;
            case 3:
                CardView cardView2 = this.cardView;
                if (cardView2 != null) {
                    cardView2.setCardNumberError();
                }
                AnalyticsUtil.addEvent(UserEvents.cfevent_payment_processing_error, new HashMap<String, String>(cFErrorResponse) {
                    final CFErrorResponse val$cfErrorResponse;

                    {
                        this.val$cfErrorResponse = cFErrorResponse;
                        put(AnalyticsConstants.PAYMENT_MODE, PaymentMode.CARD.name());
                        put("error_code", cFErrorResponse.getCode());
                        put("error_message", cFErrorResponse.getMessage());
                    }
                });
                AnalyticsUtil.addEvent(UserEvents.cfevent_payment_ended, new HashMap<String, String>() {
                    {
                        put(AnalyticsConstants.PAYMENT_MODE, CashfreeNativeCheckoutActivity.this.paymentInitiationData.getPaymentMode().name());
                        if (CashfreeNativeCheckoutActivity.this.paymentInitiationData.getName() != null && !CashfreeNativeCheckoutActivity.this.paymentInitiationData.getName().isEmpty()) {
                            put(AnalyticsConstants.PAYMENT_METHOD, CashfreeNativeCheckoutActivity.this.paymentInitiationData.getName());
                        }
                        put(AnalyticsConstants.PAYMENT_ATTEMPT_STATUS, AnalyticsConstants.CANCELLED);
                    }
                });
                CFPersistence.getInstance().clearTxnID();
                break;
            case 4:
                PayLaterView payLaterView = this.payLaterView;
                if (payLaterView != null) {
                    payLaterView.showPhoneIllegible();
                }
                AnalyticsUtil.addEvent(UserEvents.cfevent_payment_processing_error, new HashMap<String, String>(cFErrorResponse) {
                    final CFErrorResponse val$cfErrorResponse;

                    {
                        this.val$cfErrorResponse = cFErrorResponse;
                        put(AnalyticsConstants.PAYMENT_MODE, CashfreeNativeCheckoutActivity.this.paymentInitiationData.getPaymentMode().name());
                        put("error_code", cFErrorResponse.getCode());
                        put("error_message", cFErrorResponse.getMessage());
                    }
                });
                AnalyticsUtil.addEvent(UserEvents.cfevent_payment_ended, new HashMap<String, String>() {
                    {
                        put(AnalyticsConstants.PAYMENT_MODE, CashfreeNativeCheckoutActivity.this.paymentInitiationData.getPaymentMode().name());
                        if (CashfreeNativeCheckoutActivity.this.paymentInitiationData.getName() != null && !CashfreeNativeCheckoutActivity.this.paymentInitiationData.getName().isEmpty()) {
                            put(AnalyticsConstants.PAYMENT_METHOD, CashfreeNativeCheckoutActivity.this.paymentInitiationData.getName());
                        }
                        put(AnalyticsConstants.PAYMENT_ATTEMPT_STATUS, AnalyticsConstants.CANCELLED);
                    }
                });
                CFPersistence.getInstance().clearTxnID();
                break;
            case 5:
            case 6:
                AnalyticsUtil.addEvent(UserEvents.cfevent_payment_ended, new HashMap<String, String>() {
                    {
                        PaymentMode paymentMode = CashfreeNativeCheckoutActivity.this.paymentInitiationData.getPaymentMode();
                        if (paymentMode.equals(PaymentMode.QR_CODE)) {
                            put(AnalyticsConstants.PAYMENT_MODE, AnalyticsConstants.UPI);
                            put("channel", AnalyticsConstants.QR);
                        } else if (paymentMode.equals(PaymentMode.UPI_COLLECT)) {
                            put(AnalyticsConstants.PAYMENT_MODE, AnalyticsConstants.UPI);
                            put("channel", AnalyticsConstants.COLLECT);
                        } else if (paymentMode.equals(PaymentMode.UPI_INTENT)) {
                            put(AnalyticsConstants.PAYMENT_MODE, AnalyticsConstants.UPI);
                            put("channel", AnalyticsConstants.INTENT);
                        } else {
                            put(AnalyticsConstants.PAYMENT_MODE, CashfreeNativeCheckoutActivity.this.paymentInitiationData.getPaymentMode().name());
                        }
                        if (CashfreeNativeCheckoutActivity.this.paymentInitiationData.getName() != null && !CashfreeNativeCheckoutActivity.this.paymentInitiationData.getName().isEmpty()) {
                            put(AnalyticsConstants.PAYMENT_METHOD, CashfreeNativeCheckoutActivity.this.paymentInitiationData.getName());
                        }
                        put(AnalyticsConstants.PAYMENT_ATTEMPT_STATUS, AnalyticsConstants.CANCELLED);
                    }
                });
                CFPersistence.getInstance().clearTxnID();
                break;
            default:
                AnalyticsUtil.addEvent(UserEvents.cfevent_payment_ended, new HashMap<String, String>() {
                    {
                        PaymentMode paymentMode = CashfreeNativeCheckoutActivity.this.paymentInitiationData.getPaymentMode();
                        if (paymentMode.equals(PaymentMode.QR_CODE)) {
                            put(AnalyticsConstants.PAYMENT_MODE, AnalyticsConstants.UPI);
                            put("channel", AnalyticsConstants.QR);
                        } else if (paymentMode.equals(PaymentMode.UPI_COLLECT)) {
                            put(AnalyticsConstants.PAYMENT_MODE, AnalyticsConstants.UPI);
                            put("channel", AnalyticsConstants.COLLECT);
                        } else if (paymentMode.equals(PaymentMode.UPI_INTENT)) {
                            put(AnalyticsConstants.PAYMENT_MODE, AnalyticsConstants.UPI);
                            put("channel", AnalyticsConstants.INTENT);
                        } else {
                            put(AnalyticsConstants.PAYMENT_MODE, CashfreeNativeCheckoutActivity.this.paymentInitiationData.getPaymentMode().name());
                        }
                        if (CashfreeNativeCheckoutActivity.this.paymentInitiationData.getName() != null && !CashfreeNativeCheckoutActivity.this.paymentInitiationData.getName().isEmpty()) {
                            put(AnalyticsConstants.PAYMENT_METHOD, CashfreeNativeCheckoutActivity.this.paymentInitiationData.getName());
                        }
                        put(AnalyticsConstants.PAYMENT_ATTEMPT_STATUS, AnalyticsConstants.FAILED);
                    }
                });
                CFPersistence.getInstance().clearTxnID();
                sendError(cFErrorResponse);
                break;
        }
    }

    private void hideEmiDialog() {
        EmiInfoBottomSheetDialog emiInfoBottomSheetDialog = this.emiInfoDialog;
        if (emiInfoBottomSheetDialog == null || !emiInfoBottomSheetDialog.isVisible()) {
            return;
        }
        this.emiInfoDialog.dismissAllowingStateLoss();
        this.emiInfoDialog = null;
    }

    private void hideExitDialog() {
        androidx.appcompat.app.c cVar = this.exitDialog;
        if (cVar == null || !cVar.isShowing()) {
            return;
        }
        this.exitDialog.dismiss();
    }

    private void hideNBDialog() {
        com.google.android.material.bottomsheet.d dVar = this.nbAppsDialog;
        if (dVar == null || !dVar.isShowing()) {
            return;
        }
        this.nbAppsDialog.dismiss();
    }

    private void hideQRDialog() {
        QRDialog qRDialog = this.qrDialog;
        if (qRDialog == null || !qRDialog.isShowing()) {
            return;
        }
        this.qrDialog.dismiss();
    }

    private void hideQuickCheckout() {
        com.google.android.material.bottomsheet.d dVar = this.quickCheckoutDialog;
        if (dVar == null || !dVar.isShowing()) {
            return;
        }
        this.quickCheckoutDialog.dismiss();
    }

    private void hideSavedCardDeleteDialog() {
        com.google.android.material.bottomsheet.d dVar = this.savedCardDeleteDialog;
        if (dVar == null || !dVar.isShowing()) {
            return;
        }
        this.savedCardDeleteDialog.dismiss();
    }

    private void hideUPIDialog() {
        com.google.android.material.bottomsheet.d dVar = this.upiAppsDialog;
        if (dVar == null || !dVar.isShowing()) {
            return;
        }
        this.upiAppsDialog.dismiss();
    }

    private boolean isPaymentModeOpen(PaymentView paymentView) {
        return paymentView != null && paymentView.isOpen();
    }

    public void lambda$hideLoader$4() {
        this.loader.setVisibility(8);
    }

    public void lambda$loadViews$2(ConfigResponse configResponse, List list, ArrayList arrayList) {
        this.toolbarView.setMerchantInfo(configResponse.getMerchantInfo(), configResponse.getOrderDetails(), new p(this, 3));
        if (list.size() == 1) {
            CFErrorResponse checkAndGetPaymentModeError = checkAndGetPaymentModeError((CFPaymentModes) list.get(0), configResponse.getPaymentModes(), arrayList);
            if (checkAndGetPaymentModeError != null) {
                sendError(checkAndGetPaymentModeError);
            } else {
                PaymentView addView = addView(configResponse, (CFPaymentModes) list.get(0), arrayList);
                if (addView != null) {
                    addView.open();
                }
            }
        } else {
            Iterator it = list.iterator();
            while (it.hasNext()) {
                addView(configResponse, (CFPaymentModes) it.next(), arrayList);
            }
        }
        if (this.cardView != null) {
            final NfcAdapter defaultAdapter = ((NfcManager) getSystemService("nfc")).getDefaultAdapter();
            if (defaultAdapter == null) {
                this.cardView.setUIState(CardView.CardViewUIState.NFC_UNAVAILABLE);
                return;
            }
            AnalyticsUtil.addEvent(UserEvents.NFC_AVAILABLE);
            toggleCardViewUIState(defaultAdapter);
            this.nfcCardManager = new NfcCardManager(this);
            this.nfcCardReader = new NfcCardReader();
            registerReceiver(new BroadcastReceiver() {
                @Override
                public void onReceive(Context context, Intent intent) {
                    CashfreeNativeCheckoutActivity.this.toggleCardViewUIState(defaultAdapter);
                }
            }, new IntentFilter("android.nfc.action.ADAPTER_STATE_CHANGED"));
        }
    }

    public void lambda$onBackPressed$9() {
        AnalyticsUtil.addEvent(UserEvents.cfevent_checkout_close, new HashMap<String, String>() {
            {
                put("channel", "back_clicked");
                put("platform", "android");
            }
        });
        sendError(CFUtil.getResponseFromError(CFUtil.getCancelledResponse()));
    }

    public boolean lambda$onCreate$0() {
        return NetworkConnectivityUtil.isNetworkConnected(getApplicationContext());
    }

    public void lambda$onDataFetched$10(QuickCheckout quickCheckout, OrderDetails orderDetails) {
        if (quickCheckout == null || quickCheckout.getQuickPaymentModes().size() <= 0) {
            return;
        }
        showQuickCheckoutDialog(quickCheckout, orderDetails);
    }

    public void lambda$onFetchPaymentData$1(List list, ConfigResponse configResponse, ArrayList arrayList) {
        if (this.quickCheckoutEnabled && !CFUIPersistence.getInstance().getQuickCheckoutShown()) {
            this.nativeCheckoutViewModel.getQuickCheckoutData(list, configResponse.getPaymentModes(), configResponse.getOrderDetails(), arrayList, this);
        }
        loadViews(configResponse, list, arrayList);
    }

    public void lambda$onOrderStatusFailed$8() {
        if (this.isResponseSent) {
            return;
        }
        sendVerify(this.nativeCheckoutViewModel.getOrderId());
    }

    public void lambda$onOrderStatusPaid$7() {
        if (this.isResponseSent) {
            return;
        }
        sendVerify(this.nativeCheckoutViewModel.getOrderId());
    }

    public void lambda$onSavedCardsFetchSuccess$11(SavedCardsResponse savedCardsResponse) {
        if (this.savedCardView == null) {
            this.savedCardView = new SavedCardView(this.llContentScrolling, savedCardsResponse.getSavedCards(), this, this.cfTheme);
        }
    }

    public static void lambda$sendError$6(String str, CFErrorResponse cFErrorResponse) {
        CFNativeCallbackEventBus.getInstance().publishEvent(new CFNativeCallbackEventBus$CFPaymentCallbackEvent(CFNativeCallbackEvents.onFailure, str, cFErrorResponse));
    }

    public static void lambda$sendVerify$5(String str) {
        CFNativeCallbackEventBus.getInstance().publishEvent(new CFNativeCallbackEventBus$CFPaymentCallbackEvent(CFNativeCallbackEvents.onVerify, str, null));
    }

    public void lambda$showLoader$3() {
        this.loader.setVisibility(0);
    }

    private void loadViews(ConfigResponse configResponse, List<CFPaymentModes> list, ArrayList<CFUPIApp> arrayList) {
        runOnUiThread(new m(this, configResponse, list, arrayList, 1));
    }

    private void onOpenMode(PaymentMode paymentMode) {
        AnalyticsUtil.addEvent(UserEvents.cfevent_payment_mode_focus, new HashMap<String, String>(paymentMode) {
            final PaymentMode val$paymentMode;

            {
                this.val$paymentMode = paymentMode;
                put(AnalyticsConstants.PAYMENT_MODE, paymentMode.name());
            }
        });
        UPIView uPIView = this.upiView;
        if (uPIView != null && paymentMode != PaymentMode.UPI_INTENT && paymentMode != PaymentMode.UPI_COLLECT) {
            uPIView.close();
        }
        NetBankingView netBankingView = this.netBankingView;
        if (netBankingView != null && paymentMode != PaymentMode.NET_BANKING) {
            netBankingView.close();
        }
        WalletView walletView = this.walletView;
        if (walletView != null && paymentMode != PaymentMode.WALLET) {
            walletView.close();
        }
        PayLaterView payLaterView = this.payLaterView;
        if (payLaterView != null && paymentMode != PaymentMode.PAY_LATER) {
            payLaterView.close();
        }
        CardView cardView = this.cardView;
        if (cardView != null && paymentMode != PaymentMode.CARD) {
            cardView.close();
        }
        this.toolbarView.close();
    }

    private void sendError(CFErrorResponse cFErrorResponse) {
        String orderId;
        finish();
        if (this.isResponseSent) {
            return;
        }
        this.isResponseSent = true;
        if (cFErrorResponse.getMessage().equals("payment method failed.") || (orderId = this.nativeCheckoutViewModel.getOrderId()) == null) {
            return;
        }
        ThreadUtil.runOnUIThread(new RunnableC0235t(orderId, cFErrorResponse, 5));
    }

    public void sendVerify(String str) {
        AnalyticsUtil.addEvent(UserEvents.cfevent_payment_ended, new HashMap<String, String>(str) {
            final String val$orderId;

            {
                this.val$orderId = str;
                put("order_id", str);
                put(AnalyticsConstants.PAYMENT_METHOD, CashfreeNativeCheckoutActivity.this.paymentInitiationData.getPaymentMode().name());
                put(AnalyticsConstants.PAYMENT_ATTEMPT_STATUS, AnalyticsConstants.ENDED);
            }
        });
        AnalyticsUtil.addEvent(UserEvents.cfevent_checkout_close, new HashMap<String, String>(str) {
            final String val$orderId;

            {
                this.val$orderId = str;
                put("order_id", str);
                put(AnalyticsConstants.PAYMENT_METHOD, CashfreeNativeCheckoutActivity.this.paymentInitiationData.getPaymentMode().name());
                put("channel", AnalyticsConstants.VERIFY_CALLBACK);
            }
        });
        CFPersistence.getInstance().clearTxnID();
        if (this.quickCheckoutEnabled) {
            this.nativeCheckoutViewModel.sendPaymentDataForQuickCheckout(this.paymentInitiationData, CFPersistence.getInstance().getEnvironment());
        }
        finish();
        if (this.isResponseSent) {
            return;
        }
        this.isResponseSent = true;
        if (str != null) {
            ThreadUtil.runOnUIThread(new F(str, 8));
        }
    }

    private void setTheme() {
        int parseColor = Color.parseColor(this.cfTheme.getNavigationBarBackgroundColor());
        ((ProgressBar) findViewById(R.id.progress_bar)).getIndeterminateDrawable().setColorFilter(parseColor, PorterDuff.Mode.MULTIPLY);
        getWindow().setStatusBarColor(parseColor);
    }

    private void showEmiOptions(List<EmiOption> list, OrderDetails orderDetails) {
        hideEmiDialog();
        this.emiInfoDialog = new EmiInfoBottomSheetDialog(list, orderDetails, this.cfTheme, this);
        if (isFinishing() || isDestroyed()) {
            return;
        }
        this.emiInfoDialog.show(getSupportFragmentManager(), EmiInfoBottomSheetDialog.TAG);
    }

    private void showNBDialog(List<PaymentOption> list, OrderDetails orderDetails) {
        hideNBDialog();
        this.nbAppsDialog = new NBAppsBottomSheetDialog(this, list, orderDetails, this.cfTheme, this);
        if (isFinishing() || isDestroyed()) {
            return;
        }
        this.nbAppsDialog.show();
    }

    public void showQRCodeDialog(String str) {
        hideQRDialog();
        this.qrDialog = new QRDialog(this, str, this.cfTheme, this);
        if (isFinishing() || isDestroyed()) {
            return;
        }
        this.qrDialog.show();
    }

    private void showQuickCheckoutDialog(QuickCheckout quickCheckout, OrderDetails orderDetails) {
        hideQuickCheckout();
        this.quickCheckoutDialog = new QuickCheckoutBottomSheetDialog(this, quickCheckout, orderDetails, this.cfTheme, this);
        if (isFinishing() || isDestroyed()) {
            return;
        }
        this.quickCheckoutDialog.show();
    }

    private void showUPIDialog(ArrayList<CFUPIApp> arrayList, OrderDetails orderDetails) {
        hideUPIDialog();
        this.upiAppsDialog = new UPIAppsBottomSheetDialog(this, arrayList, orderDetails, this.cfTheme, new Y0(this, 5));
        if (isFinishing() || isDestroyed()) {
            return;
        }
        this.upiAppsDialog.show();
    }

    public void toggleCardViewUIState(NfcAdapter nfcAdapter) {
        if (this.cardView != null) {
            if (nfcAdapter.isEnabled()) {
                AnalyticsUtil.addEvent(UserEvents.NFC_ENABLED);
                this.cardView.setUIState(CardView.CardViewUIState.NFC_ENABLED);
            } else {
                AnalyticsUtil.addEvent(UserEvents.NFC_DISABLED);
                this.cardView.setUIState(CardView.CardViewUIState.NFC_DISABLED);
            }
        }
    }

    @Override
    public BaseViewModel getViewModel() {
        return this.nativeCheckoutViewModel;
    }

    public void hideLoader() {
        runOnUiThread(new RunnableC0238u0(this, 6));
    }

    public void onBackPressed() {
        this.exitDialog = new ExitDialog(this, this.cfTheme, new C0270b0(this, 4));
        if (isFinishing() || isDestroyed()) {
            return;
        }
        this.exitDialog.show();
    }

    @Override
    public void onCardPayClick(String str, String str2, String str3, String str4, String str5, boolean z) {
        this.nativeCheckoutViewModel.createCardPayment(str, str2, str3, str4, str5, z);
    }

    @Override
    public void onClose(PaymentMode paymentMode) {
        if (isPaymentModeOpen(this.upiView) || isPaymentModeOpen(this.netBankingView) || isPaymentModeOpen(this.walletView) || isPaymentModeOpen(this.payLaterView) || isPaymentModeOpen(this.cardView)) {
            return;
        }
        this.toolbarView.open();
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        AnalyticsUtil.addEvent(UserEvents.cfevent_checkout_open, new HashMap<String, String>() {
            {
                put("platform", "android");
            }
        });
        this.paymentInitiationData = CFPersistence.getInstance().getPaymentInitiationData();
        CFCorePaymentGatewayService.getInstance().setCheckoutCallback(this.cfNativeCoreCallbacks.getCfCheckoutResponseCallback());
        CFCorePaymentGatewayService.getInstance().setQRCallback(this.cfNativeCoreCallbacks);
        try {
            this.quickCheckoutEnabled = getResources().getBoolean(R.bool.cf_quick_checkout_enabled);
        } catch (Exception e) {
            CFLoggerService.getInstance().e(TAG, e.getMessage());
        }
        this.isCreated = true;
        this.isResponseSent = false;
        setContentView(R.layout.activity_cashfree_native_checkout);
        NativeCheckoutViewModel nativeCheckoutViewModel = new NativeCheckoutViewModel(this, new G(this, 4));
        this.nativeCheckoutViewModel = nativeCheckoutViewModel;
        this.cfTheme = nativeCheckoutViewModel.getTheme();
        this.loader = (CoordinatorLayout) findViewById(R.id.cf_loader);
        setTheme();
        this.llContentScrolling = findViewById(R.id.llc_content);
        ToolbarView toolbarView = new ToolbarView((CoordinatorLayout) findViewById(R.id.cf_cl_root), this.cfTheme);
        this.toolbarView = toolbarView;
        toolbarView.open();
        setSupportActionBar(this.toolbarView.getMaterialToolbar());
        if (getSupportActionBar() != null) {
            getSupportActionBar().n(true);
            getSupportActionBar().r("");
        }
        showLoader();
        this.nativeCheckoutViewModel.init();
        this.nativeCheckoutViewModel.addSavedCardListener(this);
    }

    @Override
    public void onDataFetched(QuickCheckout quickCheckout, OrderDetails orderDetails, List<CFUPIApp> list) {
        runOnUiThread(new D(4, this, quickCheckout, orderDetails));
    }

    @Override
    public void onDestroy() {
        hideQRDialog();
        hideQuickCheckout();
        SavedCardView savedCardView = this.savedCardView;
        if (savedCardView != null) {
            savedCardView.resetView();
        }
        super.onDestroy();
    }

    @Override
    public void onEmiDialogDismiss() {
        this.emiInfoDialog = null;
    }

    @Override
    public void onEmiOptionClicked(List<EmiOption> list, OrderDetails orderDetails) {
        showEmiOptions(list, orderDetails);
    }

    @Override
    public void onEmiPayClick(EMIView.EMIPaymentObject eMIPaymentObject) {
        hideEmiDialog();
        this.nativeCheckoutViewModel.createCardEMIPayment(eMIPaymentObject);
    }

    @Override
    public void onFetchPaymentData(ConfigResponse configResponse, List<CFPaymentModes> list) {
        if (list.isEmpty()) {
            sendError(CFUtil.getResponseFromError(CFUtil.getFailedResponse("no payment_modes are available as per configuration.")));
            return;
        }
        if (list.contains(CFPaymentModes.UPI)) {
            CFUPIUtil.getInstalledUPIApps(this, new j(this, list, configResponse));
            return;
        }
        if (this.quickCheckoutEnabled && !CFUIPersistence.getInstance().getQuickCheckoutShown()) {
            this.nativeCheckoutViewModel.getQuickCheckoutData(list, configResponse.getPaymentModes(), configResponse.getOrderDetails(), new ArrayList(), this);
        }
        loadViews(configResponse, list, null);
    }

    @Override
    public void onInitiatePayment(CFPayment cFPayment, PaymentInitiationData paymentInitiationData) {
        try {
            CFDropCheckoutPayment checkoutPayment = CFUIPersistence.getInstance().getCheckoutPayment();
            if (checkoutPayment != null && checkoutPayment.getSource() != null) {
                String[] split = checkoutPayment.getSource().split("-");
                cFPayment.setCfSDKFlavour(CFPayment.CFSDKFlavour.fromString(split[1]).withVersion(split[2]));
                cFPayment.setCfsdkFramework(CFPayment.CFSDKFramework.fromString(split[0]).withVersion(split[3]));
                cFPayment.withBrowserVersion(split[7]);
            }
            CFPersistence.getInstance().setPaymentInitiationData(paymentInitiationData);
            this.paymentInitiationData = paymentInitiationData;
            showLoader();
            cFPayment.setTheme(this.cfTheme);
            CFCorePaymentGatewayService.getInstance().doPayment(this, cFPayment);
        } catch (CFException e) {
            e.printStackTrace();
        }
    }

    @Override
    public void onNBPayClick(PaymentInitiationData paymentInitiationData) {
        this.nativeCheckoutViewModel.createNBPayment(paymentInitiationData);
    }

    public void onNewIntent(Intent intent) {
        super/*androidx.fragment.app.FragmentActivity*/.onNewIntent(intent);
        Tag tag = (Tag) intent.getParcelableExtra("android.nfc.extra.TAG");
        if (tag == null) {
            Toast.makeText((Context) this, (CharSequence) "TAG null", 0).show();
            return;
        }
        NfcCardResponse readCard = this.nfcCardReader.readCard(tag);
        if (readCard == null || readCard.getEmvCard() == null || this.cardView == null) {
            return;
        }
        AnalyticsUtil.addEvent(UserEvents.NFC_CARD_INFO_ENTRY_DONE, new HashMap<String, String>(readCard) {
            final NfcCardResponse val$cardResponse;

            {
                this.val$cardResponse = readCard;
                put("card_type", readCard.getEmvCard().getType().getName());
            }
        });
        CFLoggerService.getInstance().d(TAG, String.format("%s \n %s \n %s \n %s", readCard.getEmvCard().getCardNumber(), readCard.getEmvCard().getExpireDate(), readCard.getEmvCard().getHolderFirstname(), readCard.getEmvCard().getHolderLastname()));
        this.cardView.setCardNoAndExp(readCard.getEmvCard().getCardNumber(), readCard.getEmvCard().getExpireDate());
    }

    @Override
    public void onOpen(PaymentMode paymentMode) {
        onOpenMode(paymentMode);
    }

    public boolean onOptionsItemSelected(@NonNull MenuItem menuItem) {
        if (menuItem.getItemId() == 16908332) {
            onBackPressed();
        }
        return super/*android.app.Activity*/.onOptionsItemSelected(menuItem);
    }

    @Override
    public void onOrderStatusFailed() {
        ThreadUtil.runOnUIThread(new l1(this, 2));
    }

    @Override
    public void onOrderStatusPaid() {
        ThreadUtil.runOnUIThread(new RunnableC0214i(this, 2));
    }

    @Override
    public void onPVFailed() {
        this.nativeCheckoutViewModel.getOrderStatus();
    }

    @Override
    public void onPVVerified(String str) {
        sendVerify(str);
    }

    @Override
    public void onPause() {
        super.onPause();
        hideLoader();
        NfcCardManager nfcCardManager = this.nfcCardManager;
        if (nfcCardManager != null) {
            nfcCardManager.disableDispatch();
        }
    }

    @Override
    public void onPayLaterPayClick(PaymentInitiationData paymentInitiationData) {
        this.nativeCheckoutViewModel.createPayLaterPayment(paymentInitiationData);
    }

    @Override
    public void onPaymentFailure(CFErrorResponse cFErrorResponse) {
        sendError(cFErrorResponse);
    }

    @Override
    public void onResume() {
        super.onResume();
        NfcCardManager nfcCardManager = this.nfcCardManager;
        if (nfcCardManager != null) {
            nfcCardManager.enableDispatch();
        }
    }

    @Override
    public void onSavedCardDeleteClick(SavedCardsResponse.SavedCards savedCards) {
        hideSavedCardDeleteDialog();
        ?? savedCardDeleteBottomSheetDialog = new SavedCardDeleteBottomSheetDialog(this, this.cfTheme, savedCards, this);
        this.savedCardDeleteDialog = savedCardDeleteBottomSheetDialog;
        savedCardDeleteBottomSheetDialog.show();
    }

    @Override
    public void onSavedCardDeleteConfirmClick(SavedCardsResponse.SavedCards savedCards) {
        String instrumentID = savedCards.getInstrumentID();
        this.nativeCheckoutViewModel.deleteSavedCard(instrumentID, new AnonymousClass19(instrumentID));
    }

    @Override
    public void onSavedCardPayNowClick(SavedCardsResponse.SavedCards savedCards, String str) {
        this.nativeCheckoutViewModel.createSavedCardPayment(savedCards.getInstrumentID(), str);
    }

    @Override
    public void onSavedCardsFetchSuccess(SavedCardsResponse savedCardsResponse) {
        runOnUiThread(new c(this, savedCardsResponse, 1));
    }

    @Override
    public void onSelect(PaymentInitiationData paymentInitiationData) {
        this.nativeCheckoutViewModel.createQuickCheckoutPayment(paymentInitiationData);
    }

    @Override
    public void onShowMoreNBClick(List<PaymentOption> list, OrderDetails orderDetails) {
        showNBDialog(list, orderDetails);
    }

    @Override
    public void onShowMoreUPIClick(ArrayList<CFUPIApp> arrayList, OrderDetails orderDetails) {
        showUPIDialog(arrayList, orderDetails);
    }

    @Override
    public void onStart() {
        if (this.isCreated) {
            this.isCreated = false;
        } else {
            this.nativeCheckoutViewModel.getOrderStatus();
        }
        super.onStart();
    }

    @Override
    public void onStop() {
        super.onStop();
        hideUPIDialog();
        hideNBDialog();
        hideExitDialog();
        hideEmiDialog();
        hideSavedCardDeleteDialog();
    }

    @Override
    public void onUPIPayClick(PaymentInitiationData paymentInitiationData) {
        this.nativeCheckoutViewModel.createUPIPayment(paymentInitiationData);
    }

    @Override
    public void onWalletPayClick(PaymentInitiationData paymentInitiationData) {
        this.nativeCheckoutViewModel.createWalletPayment(paymentInitiationData);
    }

    public void showLoader() {
        runOnUiThread(new RunnableC0226o(this, 5));
    }

    @Override
    public void onPVCancelled() {
    }

    @Override
    public void onSavedCardsFetchFailure(CFErrorResponse cFErrorResponse) {
    }
}