lib/active_merchant/billing/gateways/inspire.rb in activemerchant-1.83.0 vs lib/active_merchant/billing/gateways/inspire.rb in activemerchant-1.84.0
- old
+ new
@@ -97,10 +97,11 @@
end
alias_method :unstore, :delete
private
+
def add_customer_data(post, options)
if options.has_key? :email
post[:email] = options[:email]
end
@@ -179,11 +180,10 @@
:authorization => response['transactionid'],
:test => test?,
:cvv_result => response['cvvresponse'],
:avs_result => { :code => response['avsresponse'] }
)
-
end
def message_from(response)
case response['responsetext']
when 'SUCCESS','Approved'
@@ -206,10 +206,10 @@
end
def determine_funding_source(source)
case
when source.is_a?(String) then :vault
- when CreditCard.card_companies.keys.include?(card_brand(source)) then :credit_card
+ when CreditCard.card_companies.include?(card_brand(source)) then :credit_card
when card_brand(source) == 'check' then :check
else raise ArgumentError, 'Unsupported funding source provided'
end
end
end