lib/active_merchant/billing/gateways/trans_first.rb in activemerchant-1.108.0 vs lib/active_merchant/billing/gateways/trans_first.rb in activemerchant-1.109.0
- old
+ new
@@ -3,11 +3,11 @@
class TransFirstGateway < Gateway
self.test_url = 'https://ws.cert.transfirst.com'
self.live_url = 'https://webservices.primerchants.com'
self.supported_countries = ['US']
- self.supported_cardtypes = [:visa, :master, :american_express, :discover]
+ self.supported_cardtypes = %i[visa master american_express discover]
self.homepage_url = 'http://www.transfirst.com/'
self.display_name = 'TransFirst'
UNUSED_CREDIT_CARD_FIELDS = %w(UserId TrackData MerchZIP MerchCustPNum MCC InstallmentNum InstallmentOf POSInd POSEntryMode POSConditionCode EComInd AuthCharInd CardCertData CAVVData)
@@ -58,10 +58,10 @@
end
def void(authorization, options={})
post = {}
- transaction_id, _ = split_authorization(authorization)
+ transaction_id, = split_authorization(authorization)
add_pair(post, :TransID, transaction_id)
commit(:void, post)
end