导航菜单

页面标题

页面副标题

Minits v4.9.3.32 - b.java 源代码

正在查看: Minits v4.9.3.32 应用的 b.java JAVA 源代码文件

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


package com.redsys.tpvvinapplibrary.k;

import U5.e;
import U5.f;
import com.redsys.tpvvinapplibrary.ErrorResponse;
import com.redsys.tpvvinapplibrary.TPVVConfiguration;
import com.redsys.tpvvinapplibrary.TPVVConstants;
import com.redsys.tpvvinapplibrary.a;
import com.redsys.tpvvinapplibrary.b.d;
import com.redsys.tpvvinapplibrary.d.c;
import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
import org.json.JSONException;
import org.json.JSONObject;

public final class b extends com.redsys.tpvvinapplibrary.a<a, C0146b> {

    public final d f121for;

    public static final class a implements a.InterfaceC0143a {

        public com.redsys.tpvvinapplibrary.l.a f122do;

        public a(com.redsys.tpvvinapplibrary.l.a aVar) {
            this.f122do = aVar;
        }
    }

    public b(d dVar) {
        this.f121for = dVar;
    }

    public static Boolean m82do(b bVar, String str) {
        bVar.getClass();
        if (str == null) {
            return Boolean.FALSE;
        }
        int parseInt = Integer.parseInt(str);
        return (parseInt < 0 || parseInt > 99) ? Boolean.FALSE : Boolean.TRUE;
    }

    public static final class C0146b implements a.b {

        public com.redsys.tpvvinapplibrary.j.a f123do;

        public ErrorResponse f124if;

        public C0146b(com.redsys.tpvvinapplibrary.j.a aVar) {
            this.f123do = aVar;
        }

        public C0146b(ErrorResponse errorResponse) {
            this.f124if = errorResponse;
        }
    }

    @Override
    public final void mo2do(a aVar) {
        String str;
        d dVar = this.f121for;
        com.redsys.tpvvinapplibrary.l.a aVar2 = aVar.f122do;
        com.redsys.tpvvinapplibrary.i.b bVar = new com.redsys.tpvvinapplibrary.i.b();
        com.redsys.tpvvinapplibrary.i.a aVar3 = new com.redsys.tpvvinapplibrary.i.a();
        if ((TPVVConfiguration.getIdentifier() != null && TPVVConfiguration.getIdentifier().equals(TPVVConstants.REQUEST_REFERENCE)) || TPVVConfiguration.getIdentifier() == null) {
            aVar3.m45static(aVar2.f125do);
            aVar3.m23break(aVar2.f126for);
            aVar3.m40new(aVar2.f127if);
        }
        aVar3.m33final(TPVVConfiguration.getFuc());
        aVar3.m41package(TPVVConfiguration.getTerminal());
        aVar3.m44return(TPVVConfiguration.getOrder());
        aVar3.m42private(TPVVConfiguration.getOperationType());
        aVar3.m37if(TPVVConfiguration.getAmount());
        aVar3.m26class(TPVVConfiguration.getIdentifier());
        aVar3.m52while(TPVVConfiguration.getDescription());
        aVar3.m25catch(TPVVConfiguration.getGroup());
        aVar3.m35for(TPVVConfiguration.getCurrency());
        aVar3.m30do(TPVVConfiguration.getAccountType());
        aVar3.m38import(TPVVConfiguration.getMerchantUrl());
        aVar3.m39native(TPVVConfiguration.getUrlOK());
        aVar3.m43public(TPVVConfiguration.getUrlKO());
        aVar3.m27const(TPVVConfiguration.getLanguage());
        aVar3.m31else(TPVVConfiguration.getPaymentMethods());
        aVar3.m24case(TPVVConfiguration.getMerchantName());
        aVar3.m36goto(TPVVConfiguration.getTitular());
        aVar3.m48this(TPVVConfiguration.getMerchantDescriptor());
        aVar3.m49throw(TPVVConfiguration.getModule());
        aVar3.m46super(TPVVConfiguration.getMerchantData());
        aVar3.m50throws(TPVVConfiguration.getPrepaidCard());
        aVar3.m47switch(TPVVConfiguration.getPartialPayment());
        aVar3.m32extends(TPVVConfiguration.getSumTotal());
        aVar3.m28default(TPVVConfiguration.getShippingAddressPyp());
        aVar3.m34finally(TPVVConfiguration.getTaxReference());
        aVar3.m51try("true");
        JSONObject jSONObject = null;
        if (TPVVConfiguration.getExtraParams() != null) {
            String extraParams = TPVVConfiguration.getExtraParams();
            if (extraParams != null) {
                aVar3.f62abstract = com.redsys.tpvvinapplibrary.e.a.m16do(extraParams);
            } else {
                aVar3.f62abstract = null;
            }
            try {
                if (new JSONObject(TPVVConfiguration.getExtraParams()).getString("DS_MERCHANT_DIRECTPAYMENT").toLowerCase().equals("false")) {
                    aVar3.m51try("false");
                } else {
                    aVar3.m51try("true");
                }
            } catch (JSONException unused) {
            }
        }
        bVar.m54do(aVar3);
        bVar.m55do(TPVVConfiguration.getPackageName());
        com.redsys.tpvvinapplibrary.k.a aVar4 = new com.redsys.tpvvinapplibrary.k.a(this);
        dVar.getClass();
        try {
            if (bVar.m53do().f62abstract != null) {
                jSONObject = com.redsys.tpvvinapplibrary.e.a.m17if(bVar.m56if());
            } else {
                e b8 = new f().b();
                new JSONObject();
                b8.q(bVar, com.redsys.tpvvinapplibrary.i.b.class);
                String jSONObject2 = new JSONObject(b8.q(bVar, com.redsys.tpvvinapplibrary.i.b.class)).toString();
                com.redsys.tpvvinapplibrary.c.a aVar5 = new com.redsys.tpvvinapplibrary.c.a(com.redsys.tpvvinapplibrary.f.a.m18do(jSONObject2 + TPVVConfiguration.getLicense()), jSONObject2);
                e b9 = new f().b();
                new JSONObject();
                b9.q(aVar5, com.redsys.tpvvinapplibrary.c.a.class);
                jSONObject = new JSONObject(b9.q(aVar5, com.redsys.tpvvinapplibrary.c.a.class));
            }
        } catch (UnsupportedEncodingException | NoSuchAlgorithmException unused2) {
            aVar4.m80do(new ErrorResponse(TPVVConstants.CODE_GENERIC_ERROR, "ENCRYPTION_SIGNATURE_ERROR"));
        } catch (JSONException unused3) {
            aVar4.m80do(new ErrorResponse(TPVVConstants.CODE_GENERIC_ERROR, "MAPPING_ERROR"));
        }
        com.redsys.tpvvinapplibrary.b.a aVar6 = dVar.f11do;
        String environment = TPVVConfiguration.getEnvironment();
        if (environment == "0") {
            str = "https://sis-d.redsys.es/sis/virtualControllerV2/pagoVirtual";
        } else {
            str = "";
        }
        if (environment == "1") {
            str = "https://sis-i.redsys.es:25443/sis/virtualControllerV2/pagoVirtual";
        }
        if (environment == TPVVConstants.ENVIRONMENT_REAL) {
            str = "https://sis.redsys.es/sis/virtualControllerV2/pagoVirtual";
        }
        if (environment == TPVVConstants.ENVIRONMENT_TEST) {
            str = "https://sis-t.redsys.es:25443/sis/virtualControllerV2/pagoVirtual";
        }
        ((c) aVar6).m11do(str, jSONObject, new com.redsys.tpvvinapplibrary.b.b(aVar4));
    }
}