lib/active_merchant/billing/gateways/paybox_direct.rb in activemerchant-1.23.0 vs lib/active_merchant/billing/gateways/paybox_direct.rb in activemerchant-1.24.0

- old
+ new

@@ -35,11 +35,10 @@ "EUR"=> '978' } SUCCESS_CODES = ['00000'] UNAVAILABILITY_CODES = ['00001', '00097', '00098'] - FRAUD_CODES = ['00102','00104','00134','00138','00141','00143','00157','00159'] SUCCESS_MESSAGE = 'The transaction was approved' FAILURE_MESSAGE = 'The transaction failed' # Money is referenced in cents self.money_format = :cents @@ -146,20 +145,16 @@ response = parse(ssl_post(LIVE_URL_BACKUP, request_data)) if service_unavailable?(response) && !test? Response.new(success?(response), message_from(response), response.merge( :timestamp => parameters[:dateq]), :test => test?, :authorization => response[:numappel].to_s + response[:numtrans].to_s, - :fraud_review => fraud_review?(response), + :fraud_review => false, :sent_params => parameters.delete_if{|key,value| ['porteur','dateval','cvv'].include?(key.to_s)} ) end def success?(response) SUCCESS_CODES.include?(response[:codereponse]) - end - - def fraud_review?(response) - FRAUD_CODES.include?(response[:codereponse]) end def service_unavailable?(response) UNAVAILABILITY_CODES.include?(response[:codereponse]) end