lib/active_merchant/billing/gateways/optimal_payment.rb in activemerchant-1.99.0 vs lib/active_merchant/billing/gateways/optimal_payment.rb in activemerchant-1.100.0
- old
+ new
@@ -252,12 +252,11 @@
# end
def schema
{ 'xmlns' => 'http://www.optimalpayments.com/creditcard/xmlschema/v1',
'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance',
- 'xsi:schemaLocation' => 'http://www.optimalpayments.com/creditcard/xmlschema/v1'
- }
+ 'xsi:schemaLocation' => 'http://www.optimalpayments.com/creditcard/xmlschema/v1'}
end
def build_merchant_account(xml)
xml.tag! 'merchantAccount' do
xml.tag! 'accountNum', @options[:account_number]
@@ -321,11 +320,10 @@
def card_type(key)
{ 'visa' => 'VI',
'master' => 'MC',
'american_express'=> 'AM',
'discover' => 'DI',
- 'diners_club' => 'DC',
- }[key]
+ 'diners_club' => 'DC', }[key]
end
end
end
end