com.global.api.terminals.pax.subgroups.AvsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of globalpayments-sdk Show documentation
Show all versions of globalpayments-sdk Show documentation
API for processing payments through Global Payments
package com.global.api.terminals.pax.subgroups;
import com.global.api.entities.enums.ControlCodes;
import com.global.api.terminals.abstractions.IResponseSubGroup;
import com.global.api.utils.MessageReader;
import com.global.api.utils.StringUtils;
public class AvsResponse implements IResponseSubGroup {
private String avsResponseCode;
private String avsResponseMessage;
public String getAvsResponseCode() {
return avsResponseCode;
}
public String getAvsResponseMessage() {
return avsResponseMessage;
}
public AvsResponse(MessageReader br) {
String values = br.readToCode(ControlCodes.FS);
if (StringUtils.isNullOrEmpty(values))
return;
String[] data = values.split("\\[US\\]");
try {
avsResponseCode = data[0];
avsResponseMessage = data[1];
}
catch (IndexOutOfBoundsException e) {
// Nom nom
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy