lib/active_merchant/billing/gateways/inspire.rb in activemerchant-1.114.0 vs lib/active_merchant/billing/gateways/inspire.rb in activemerchant-1.116.0
- old
+ new
@@ -94,11 +94,11 @@
def store(creditcard, options = {})
billing_id = options.delete(:billing_id).to_s || true
authorize(100, creditcard, options.merge(store: billing_id))
end
- alias_method :unstore, :delete
+ alias unstore delete
private
def add_customer_data(post, options)
post[:email] = options[:email] if options.has_key? :email
@@ -122,11 +122,11 @@
def add_invoice(post, options)
post[:orderid] = options[:order_id].to_s.gsub(/[^\w.]/, '')
post[:orderdescription] = options[:description]
end
- def add_payment_source(params, source, options={})
+ def add_payment_source(params, source, options = {})
case determine_funding_source(source)
when :vault then add_customer_vault_id(params, source)
when :credit_card then add_creditcard(params, source, options)
when :check then add_check(params, source)
end
@@ -174,11 +174,10 @@
Response.new(response['response'] == '1', message_from(response), response,
authorization: response['transactionid'],
test: test?,
cvv_result: response['cvvresponse'],
- avs_result: { code: response['avsresponse'] }
- )
+ avs_result: { code: response['avsresponse'] })
end
def message_from(response)
case response['responsetext']
when 'SUCCESS', 'Approved'