lib/active_merchant/billing/gateways/paybox_direct.rb in activemerchant-1.21.0 vs lib/active_merchant/billing/gateways/paybox_direct.rb in activemerchant-1.22.0

- old
+ new

@@ -1,7 +1,5 @@ -require 'iconv' - module ActiveMerchant #:nodoc: module Billing #:nodoc: class PayboxDirectGateway < Gateway TEST_URL = 'https://preprod-ppps.paybox.com/PPPS.php' LIVE_URL = 'https://ppps.paybox.com/PPPS.php' @@ -37,11 +35,11 @@ "EUR"=> '978' } SUCCESS_CODES = ['00000'] UNAVAILABILITY_CODES = ['00001', '00097', '00098'] - FRAUD_CODES = ['00102','00104','00105','00134','00138','00141','00143','00156','00157','00159'] + 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 @@ -130,10 +128,9 @@ post[:numappel] = identification[0,10] post[:numtrans] = identification[10,10] end def parse(body) - body = Iconv.iconv("UTF-8","LATIN1", body.to_s).join results = {} body.split(/&/).each do |pair| key,val = pair.split(/\=/) results[key.downcase.to_sym] = CGI.unescape(val) if val end