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

- old
+ new

@@ -37,11 +37,11 @@ 'EUR' => '978', 'XPF' => '953' } SUCCESS_CODES = ['00000'] - UNAVAILABILITY_CODES = ['00001', '00097', '00098'] + UNAVAILABILITY_CODES = %w[00001 00097 00098] SUCCESS_MESSAGE = 'The transaction was approved' FAILURE_MESSAGE = 'The transaction failed' # Money is referenced in cents self.money_format = :cents @@ -49,11 +49,11 @@ # The countries the gateway supports merchants from as 2 digit ISO country codes self.supported_countries = ['FR'] # The card types supported by the payment gateway - self.supported_cardtypes = [:visa, :master, :american_express, :diners_club, :jcb] + self.supported_cardtypes = %i[visa master american_express diners_club jcb] # The homepage URL of the gateway self.homepage_url = 'http://www.paybox.com/' # The name of the gateway @@ -158,10 +158,10 @@ message_from(response), response.merge(timestamp: parameters[:dateq]), test: test?, authorization: response[:numappel].to_s + response[:numtrans].to_s, fraud_review: false, - sent_params: parameters.delete_if { |key, value| ['porteur', 'dateval', 'cvv'].include?(key.to_s) } + sent_params: parameters.delete_if { |key, value| %w[porteur dateval cvv].include?(key.to_s) } ) end def success?(response) SUCCESS_CODES.include?(response[:codereponse])