lib/active_merchant/billing/gateways/federated_canada.rb in activemerchant-1.28.0 vs lib/active_merchant/billing/gateways/federated_canada.rb in activemerchant-1.29.0
- old
+ new
@@ -20,11 +20,10 @@
# The name of the gateway
self.display_name = 'Federated Canada'
def initialize(options = {})
requires!(options, :login, :password)
- @options = options
super
end
def purchase(money, creditcard, options = {})
post = {}
@@ -99,11 +98,11 @@
def add_invoice(post, options)
post[:orderid] = options[:order_id]
post[:orderdescription] = options[:description]
end
-
+
def add_creditcard(post, creditcard)
post[:ccnumber] = creditcard.number
post[:ccexp] = expdate(creditcard)
post[:cvv] = creditcard.verification_value
end
@@ -119,18 +118,18 @@
k, v = x.split('=')
memo[k] = v
memo
end
end
-
+
def commit(action, money, parameters)
parameters[:amount] = amount(money)
data = ssl_post(self.live_url, post_data(action, parameters))
response = parse(data)
message = message_from(response)
test_mode = test?
- Response.new(success?(response), message, response,
+ Response.new(success?(response), message, response,
:test => test?,
:authorization => response['transactionid'],
:avs_result => {:code => response['avsresponse']},
:cvv_result => response['cvvresponse']
)