Disable plugin from v3
@@ -7,7 +7,6 @@ import android.support.annotation.NonNull;
import com.mercadopago.CheckoutActivity;
import com.mercadopago.callbacks.CallbackHolder;
-import com.mercadopago.components.RendererFactory;
import com.mercadopago.constants.ContentLocation;
import com.mercadopago.controllers.CustomReviewablesHandler;
import com.mercadopago.controllers.CustomServicesHandler;
@@ -15,8 +14,6 @@ import com.mercadopago.hooks.CheckoutHooks;
import com.mercadopago.model.Discount;
import com.mercadopago.model.PaymentData;
import com.mercadopago.model.PaymentResult;
-import com.mercadopago.plugins.PaymentMethodPlugin;
-import com.mercadopago.plugins.PaymentPlugin;
import com.mercadopago.preferences.CheckoutPreference;
import com.mercadopago.preferences.DecorationPreference;
import com.mercadopago.preferences.FlowPreference;
@@ -27,11 +24,6 @@ import com.mercadopago.tracker.FlowHandler;
import com.mercadopago.util.JsonUtil;
import com.mercadopago.util.TextUtil;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
/**
* Created by mreverter on 1/17/17.
@@ -82,8 +74,6 @@ public class MercadoPagoCheckout {
CheckoutStore.getInstance().reset();
CheckoutStore.getInstance().setDecorationPreference(decorationPreference);
- CheckoutStore.getInstance().setPaymentMethodPluginList(builder.paymentMethodPluginList);
- CheckoutStore.getInstance().setPaymentPlugins(builder.paymentPlugins);
CheckoutStore.getInstance().setCheckoutHooks(builder.checkoutHooks);
//Create flow identifier only for new checkouts
@@ -212,8 +202,6 @@ public class MercadoPagoCheckout {
private PaymentResult paymentResult;
private Discount discount;
private CheckoutHooks checkoutHooks;
- private List<PaymentMethodPlugin> paymentMethodPluginList = new ArrayList<>();
- private Map<String, PaymentPlugin> paymentPlugins = new HashMap<>();
public Builder setActivity(Activity activity) {
this.activity = activity;
@@ -280,23 +268,6 @@ public class MercadoPagoCheckout {
return this;
}
- public Builder addPaymentMethodPlugin(@NonNull final String paymentMethodId,
- @NonNull final PaymentMethodPlugin paymentMethodPlugin,
- @NonNull final PaymentPlugin paymentPlugin) {
- paymentMethodPluginList.add(paymentMethodPlugin);
- paymentPlugins.put(paymentMethodId, paymentPlugin);
- return this;
- }
-
- public Builder addPaymentPlugin(@NonNull final PaymentPlugin plugin, @NonNull final String paymentMethod) {
- paymentPlugins.put(paymentMethod, plugin);
- return this;
- }
-
- public void registerComponent(@NonNull final Class component, @NonNull final Class renderer) {
- RendererFactory.register(component, renderer);
- }
-
public void startForPaymentData() {
MercadoPagoCheckout mercadoPagoCheckout = new MercadoPagoCheckout(this);
mercadoPagoCheckout.startForResult(MercadoPagoCheckout.PAYMENT_DATA_RESULT_CODE);
