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

com.braintreegateway.MerchantGateway Maven / Gradle / Ivy

package com.braintreegateway;

import com.braintreegateway.util.Http;
import com.braintreegateway.util.NodeWrapper;

public class MerchantGateway {

    private Http http;
    private Configuration configuration;

    public MerchantGateway(Http http, Configuration configuration) {
        this.http = http;
        this.configuration = configuration;
    }

    public Result create(MerchantRequest request) {
        NodeWrapper response = http.post("/merchants/create_via_api", request);
        return new Result(response, Merchant.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy