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

com.braintreegateway.UnknownPaymentMethod Maven / Gradle / Ivy

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy