lib/active_merchant/billing/gateways/nab_transact.rb in activemerchant-1.108.0 vs lib/active_merchant/billing/gateways/nab_transact.rb in activemerchant-1.109.0

- old
+ new

@@ -14,11 +14,11 @@ self.live_url = 'https://transact.nab.com.au/live/xmlapi/payment' self.test_periodic_url = 'https://demo.transact.nab.com.au/xmlapi/periodic' self.live_periodic_url = 'https://transact.nab.com.au/xmlapi/periodic' self.supported_countries = ['AU'] - self.supported_cardtypes = [:visa, :master, :american_express, :diners_club, :jcb] + self.supported_cardtypes = %i[visa master american_express diners_club jcb] self.homepage_url = 'http://transact.nab.com.au' self.display_name = 'NAB Transact' self.money_format = :cents self.default_currency = 'AUD' @@ -37,10 +37,10 @@ addcrn: 5, deletecrn: 5, trigger: 8 } - SUCCESS_CODES = ['00', '08', '11', '16', '77'] + SUCCESS_CODES = %w[00 08 11 16 77] def initialize(options = {}) requires!(options, :login, :password) super end