cl.transbank.common.IntegrationTypeHelper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of transbank-sdk-java Show documentation
Show all versions of transbank-sdk-java Show documentation
Tranbank API integration SDK for Java Projects
package cl.transbank.common;
public class IntegrationTypeHelper {
public static String getWebpayIntegrationType(IntegrationType integrationType){
switch(integrationType){
case LIVE:
return "https://webpay3g.transbank.cl";
case MOCK:
return "";
case TEST:
return "https://webpay3gint.transbank.cl";
}
return "https://webpay3gint.transbank.cl";
}
public static String getPatpassIntegrationType(IntegrationType integrationType){
switch(integrationType){
case LIVE:
return "https://www.pagoautomaticocontarjetas.cl";
case MOCK:
return "";
case TEST:
return "https://pagoautomaticocontarjetasint.transbank.cl";
}
return "";
}
}