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

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

package ee.bitweb.ogone.directLink;

import ee.bitweb.ogone.AbstractRequest;
import ee.bitweb.ogone.shaComposer.ShaComposer;

import java.util.Arrays;
import java.util.List;

public class CreateAliasRequest extends AbstractRequest {

    public static final String TEST = "https://secure.ogone.com/ncol/test/alias_gateway_utf8.asp";
    public static final String PRODUCTION = "https://secure.ogone.com/ncol/prod/alias_gateway_utf8.asp";

    public CreateAliasRequest(ShaComposer shaComposer) {
        this.shaComposer = shaComposer;
        this.ogoneUri = TEST;
    }

    public List getRequiredFields() {
        return Arrays.asList("pspid", "accepturl", "exceptionurl");
    }

    public List getValidOgoneUris() {
        return Arrays.asList(TEST, PRODUCTION);
    }

    public void setAlias(Alias alias) {
        setParameter("alias", alias.toString());
//        parameters = parameters + alias.toArray()
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy