From 7711e3643a2a7728cf369af64b7aed8a017f915b Mon Sep 17 00:00:00 2001 From: Alessandro Desantis Date: Wed, 17 Jun 2020 14:10:48 +0200 Subject: Retrieve payment method from payment source Previously, the payment method was set when configuring the gem. This is not needed, since we can get it directly from the source we are charging, which is much more flexible since it opens up the ability to charge sources belonging to different payment methods. --- lib/solidus_subscriptions/config.rb | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib') diff --git a/lib/solidus_subscriptions/config.rb b/lib/solidus_subscriptions/config.rb index 6ab41c6..d6dbbf6 100644 --- a/lib/solidus_subscriptions/config.rb +++ b/lib/solidus_subscriptions/config.rb @@ -31,11 +31,6 @@ module SolidusSubscriptions def out_of_stock_dispatcher_class @out_of_stock_dispatcher_class ||= ::SolidusSubscriptions::OutOfStockDispatcher end - - def default_gateway(&block) - return @gateway.call unless block_given? - @gateway = block - end end # Maximum number of times a user can skip their subscription before it -- cgit v1.2.3