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

com.hps.integrator.entities.gift.HpsGiftCardAlias 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.gift;

import com.hps.integrator.entities.HpsTransaction;
import com.hps.integrator.entities.HpsTransactionHeader;
import com.hps.integrator.infrastructure.Element;
import com.hps.integrator.infrastructure.ElementTree;

public class HpsGiftCardAlias extends HpsTransaction {
    private HpsGiftCard giftCard;

    public HpsGiftCard getGiftCard() {
        return giftCard;
    }

    public void setGiftCard(HpsGiftCard giftCard) {
        this.giftCard = giftCard;
    }

    public HpsGiftCardAlias fromElementTree(ElementTree rsp) {
        Element item = rsp.get("Transaction").firstChild();

        super.fromElementTree(rsp);
        this.setGiftCard(HpsGiftCard.fromElement(item.get("CardData")));
        this.setResponseCode(item.getString("RspCode"));
        this.setResponseText(item.getString("RspText"));

        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy