com.braintreegateway.UnknownPaymentMethod 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.NodeWrapper;
import java.util.Collections;
import java.util.List;
public class UnknownPaymentMethod implements PaymentMethod {
private String token;
private String customerId;
private boolean isDefault;
public UnknownPaymentMethod(NodeWrapper node) {
token = node.findString("token");
customerId = node.findString("customer-id");
isDefault = node.findBoolean("default");
}
public String getToken() {
return token;
}
public boolean isDefault() {
return isDefault;
}
public String getImageUrl() {
return "https://assets.braintreegateway.com/payment_method_logo/unknown.png";
}
public String getCustomerId() {
return customerId;
}
public List getSubscriptions() {
return Collections.EMPTY_LIST;
}
}