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

ee.bitweb.ogone.directLink.DirectLinkQueryResponse Maven / Gradle / Ivy

package ee.bitweb.ogone.directLink;

import ee.bitweb.ogone.AbstractPaymentResponse;
import ee.bitweb.ogone.exceptions.XmlParseException;

import java.util.ArrayList;
import java.util.Map;

public class DirectLinkQueryResponse extends AbstractPaymentResponse {

    public DirectLinkQueryResponse(String xmlString) throws XmlParseException {
        super(xmlString);
    }

    public boolean isSuccessful() {
        return (getParameter("NCERROR").equals("0"));
    }

    protected Map filterRequestParameters(Map httpRequest) {
        ArrayList fields = new ArrayList();
        for (String field : ogoneFields) {
            fields.add(field);
        }
        fields.add("PAYIDSUB");
        fields.add("NCSTATUS");
        fields.add("'NCERRORPLUS'");
        httpRequest.keySet().retainAll(fields);
        return httpRequest;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy