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

com.hps.integrator.entities.altpayment.HpsAltPaymentAuth 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.entities.altpayment;

import com.hps.integrator.infrastructure.Element;
import com.hps.integrator.infrastructure.ElementTree;

public class HpsAltPaymentAuth extends HpsAltPaymentResponse {
    String status;
    String statusMessage;

    public String getStatus() {
        return status;
    }
    public void setStatus(String status) {
        this.status = status;
    }
    public String getStatusMessage() {
        return statusMessage;
    }
    public void setStatusMessage(String statusMessage) {
        this.statusMessage = statusMessage;
    }

    public HpsAltPaymentAuth fromElementTree(ElementTree rsp) {
        super.fromElementTree(rsp);

        Element authResponse = rsp.get("Transaction").firstChild();
        if(authResponse.has("Status"))
            this.status = authResponse.getString("Status");
        if(authResponse.has("StatusMessage"))
            this.statusMessage = authResponse.getString("StatusResponse");

        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy