app/models/spree/gateway/stripe_gateway.rb in solidus_gateway-1.1.1 vs app/models/spree/gateway/stripe_gateway.rb in solidus_gateway-1.2.0
- old
+ new
@@ -7,11 +7,17 @@
'American Express' => 'american_express',
'Diners Club' => 'diners_club',
'Visa' => 'visa'
}
- def method_type
- 'stripe'
+ if SolidusSupport.solidus_gem_version < Gem::Version.new('2.3.x')
+ def method_type
+ 'stripe'
+ end
+ else
+ def partial_name
+ 'stripe'
+ end
end
def provider_class
ActiveMerchant::Billing::StripeGateway
end