com.hps.integrator.infrastructure.HpsCreditException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of secure-submit Show documentation
Show all versions of secure-submit Show documentation
The SecureSubmit Java SDK simplifies processing of credit card transactions using Heartland Payment Systems' Portico Payment Gateway
package com.hps.integrator.infrastructure;
public class HpsCreditException extends HpsException {
Integer transactionId;
HpsExceptionCodes code;
HpsCreditExceptionDetails details;
public HpsCreditException(Integer transactionId, HpsExceptionCodes code, String message) {
this(transactionId, code, message, null);
}
public HpsCreditException(Integer transactionId, HpsExceptionCodes code, String message, Exception innerException) {
super(message, innerException);
this.transactionId = transactionId;
this.code = code;
}
public HpsCreditException(Integer transactionId, HpsExceptionCodes code, String message, String issuerCode, String issuerMessage) {
this(transactionId, code, message, issuerCode, issuerMessage, null);
}
public HpsCreditException(Integer transactionId, HpsExceptionCodes code, String message, String issuerCode, String issuerMessage, Exception innerException) {
super(message, innerException);
this.transactionId = transactionId;
this.code = code;
this.details = new HpsCreditExceptionDetails();
this.details.setIssuerResponseCode(issuerCode);
this.details.setIssuerResponseMessage(issuerMessage);
}
}