com.braintreegateway.MerchantGateway Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.braintree-java
Show all versions of org.apache.servicemix.bundles.braintree-java
This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.
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);
}
}