正在查看: Minits v4.9.3.32 应用的 c.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Minits v4.9.3.32 应用的 c.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.redsys.tpvvinapplibrary.p;
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 java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
import org.json.JSONException;
import org.json.JSONObject;
public final class c extends com.redsys.tpvvinapplibrary.a<a, b> {
public final d f191for;
public static final class a implements a.InterfaceC0143a {
}
public c(d dVar) {
this.f191for = dVar;
}
@Override
public final void mo2do(a aVar) {
d dVar = this.f191for;
com.redsys.tpvvinapplibrary.n.a aVar2 = new com.redsys.tpvvinapplibrary.n.a();
aVar2.m90else(TPVVConfiguration.getFuc());
aVar2.m100throw(TPVVConfiguration.getOperationType());
aVar2.m91final(TPVVConfiguration.getTerminal());
aVar2.m95import(TPVVConfiguration.getUrlOK() != null ? TPVVConfiguration.getUrlOK() : "REDIR_URL_OK");
aVar2.m102while(TPVVConfiguration.getUrlKO() != null ? TPVVConfiguration.getUrlKO() : "REDIR_URL_KO");
aVar2.m89do(TPVVConfiguration.getAmount());
aVar2.m92for(TPVVConfiguration.getCurrency());
aVar2.m85catch(TPVVConfiguration.getOrder());
String extraParams = TPVVConfiguration.getExtraParams();
JSONObject jSONObject = null;
if (extraParams != null) {
aVar2.f145static = com.redsys.tpvvinapplibrary.e.a.m16do(extraParams);
} else {
aVar2.f145static = null;
}
aVar2.m97new("false");
if (TPVVConfiguration.getExtraParams() != null) {
try {
String lowerCase = new JSONObject(TPVVConfiguration.getExtraParams()).getString("DS_MERCHANT_DIRECTPAYMENT").toLowerCase();
if (lowerCase.equals("false")) {
aVar2.m97new("false");
} else if (lowerCase.equals("true")) {
aVar2.m97new("true");
}
} catch (JSONException unused) {
}
}
if (TPVVConfiguration.getLanguage() != null) {
aVar2.m94if(TPVVConfiguration.getLanguage());
}
if (TPVVConfiguration.getMerchantUrl() != null) {
aVar2.m83break(TPVVConfiguration.getMerchantUrl());
}
if (TPVVConfiguration.getMerchantDescriptor() != null) {
aVar2.m96native(TPVVConfiguration.getMerchantDescriptor());
}
if (TPVVConfiguration.getGroup() != null) {
aVar2.m101try(TPVVConfiguration.getGroup());
}
if (TPVVConfiguration.getIdentifier() != null) {
aVar2.m84case(TPVVConfiguration.getIdentifier());
}
if (TPVVConfiguration.getPaymentMethods() != null) {
aVar2.m86class(TPVVConfiguration.getPaymentMethods());
}
if (TPVVConfiguration.getMerchantName() != null) {
aVar2.m99this(TPVVConfiguration.getMerchantName());
}
if (TPVVConfiguration.getMerchantData() != null) {
aVar2.m93goto(TPVVConfiguration.getMerchantData());
}
if (TPVVConfiguration.getTitular() != null) {
aVar2.m98super(TPVVConfiguration.getTitular());
}
if (TPVVConfiguration.getDescription() != null) {
aVar2.m87const(TPVVConfiguration.getDescription());
}
com.redsys.tpvvinapplibrary.n.b bVar = new com.redsys.tpvvinapplibrary.n.b();
bVar.m104do(aVar2);
bVar.m106for(TPVVConfiguration.getTerminal());
bVar.m108if(TPVVConfiguration.getFuc());
bVar.m105do(TPVVConfiguration.getPackageName());
com.redsys.tpvvinapplibrary.p.b bVar2 = new com.redsys.tpvvinapplibrary.p.b(this);
dVar.getClass();
try {
if (bVar.m107if().f145static != null) {
jSONObject = com.redsys.tpvvinapplibrary.e.a.m17if(bVar.m103do());
} else {
e b8 = new f().b();
new JSONObject();
b8.q(bVar, com.redsys.tpvvinapplibrary.n.b.class);
String jSONObject2 = new JSONObject(b8.q(bVar, com.redsys.tpvvinapplibrary.n.b.class)).toString();
com.redsys.tpvvinapplibrary.c.a aVar3 = 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(aVar3, com.redsys.tpvvinapplibrary.c.a.class);
jSONObject = new JSONObject(b9.q(aVar3, com.redsys.tpvvinapplibrary.c.a.class));
}
} catch (UnsupportedEncodingException | NoSuchAlgorithmException unused2) {
bVar2.m132do(new ErrorResponse(TPVVConstants.CODE_GENERIC_ERROR, "ENCRYPTION_SIGNATURE_ERROR"));
} catch (JSONException unused3) {
bVar2.m132do(new ErrorResponse(TPVVConstants.CODE_GENERIC_ERROR, "MAPPING_ERROR"));
}
com.redsys.tpvvinapplibrary.b.a aVar4 = dVar.f11do;
String environment = TPVVConfiguration.getEnvironment();
String str = environment == "0" ? "https://sis-d.redsys.es/sis/virtualControllerV2/generaFirmaPagoVirtual" : "";
if (environment == "1") {
str = "https://sis-i.redsys.es:25443/sis/virtualControllerV2/generaFirmaPagoVirtual";
}
if (environment == TPVVConstants.ENVIRONMENT_REAL) {
str = "https://sis.redsys.es/sis/virtualControllerV2/generaFirmaPagoVirtual";
}
if (environment == TPVVConstants.ENVIRONMENT_TEST) {
str = "https://sis-t.redsys.es:25443/sis/virtualControllerV2/generaFirmaPagoVirtual";
}
((com.redsys.tpvvinapplibrary.d.c) aVar4).m11do(str, jSONObject, new com.redsys.tpvvinapplibrary.b.c(bVar2));
}
public static final class b implements a.b {
public byte[] f192do;
public ErrorResponse f193if;
public b(byte[] bArr) {
this.f192do = bArr;
}
public b(ErrorResponse errorResponse) {
this.f193if = errorResponse;
}
}
}