All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hps.integrator.infrastructure.HpsCreditException Maven / Gradle / Ivy

Go to download

The SecureSubmit Java SDK simplifies processing of credit card transactions using Heartland Payment Systems' Portico Payment Gateway

There is a newer version: v2.5.2
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy