app/models/spree/gateway/stripe_gateway.rb in spree_gateway-3.3.7 vs app/models/spree/gateway/stripe_gateway.rb in spree_gateway-3.4.0
- old
+ new
@@ -85,21 +85,18 @@
private
# In this gateway, what we call 'secret_key' is the 'login'
def options
- super.merge(
- login: preferred_secret_key,
- application: app_info
- )
+ options = super
+ options.merge(:login => preferred_secret_key)
end
def options_for_purchase_or_auth(money, creditcard, gateway_options)
options = {}
options[:description] = "Spree Order ID: #{gateway_options[:order_id]}"
options[:currency] = gateway_options[:currency]
- options[:application] = app_info
if customer = creditcard.gateway_customer_profile_id
options[:customer] = customer
end
if token_or_card_id = creditcard.gateway_payment_profile_id
@@ -133,14 +130,8 @@
end
def update_source!(source)
source.cc_type = CARD_TYPE_MAPPING[source.cc_type] if CARD_TYPE_MAPPING.include?(source.cc_type)
source
- end
-
- def app_info
- name_with_version = "SpreeGateway/#{SpreeGateway.version}"
- url = 'https://spreecommerce.org'
- "#{name_with_version} #{url}"
end
end
end