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

com.commercetools.payment.utils.PaymentConnectorHelper Maven / Gradle / Ivy

Go to download

The commercetools java payment project intend is to make payment integration easy

The newest version!
package com.commercetools.payment.utils;

import com.commercetools.payment.model.HttpRequestResult;
import com.commercetools.payment.utils.impl.PaymentConnectorHelperImpl;

import javax.annotation.Nonnull;
import java.util.concurrent.CompletionStage;

/**
 * Created by mgatz on 7/28/16.
 */
public interface PaymentConnectorHelper {

    static PaymentConnectorHelper of() {
        return new PaymentConnectorHelperImpl();
    }

    /**
     * Create a HTTP client and execute a GET request.
     * @param url the URL to be requested
     * @return the HTTP response
     */
    @Nonnull
    CompletionStage sendHttpGetRequest(String url);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy