lib/active_merchant/billing/gateways/wirecard.rb in activemerchant-1.83.0 vs lib/active_merchant/billing/gateways/wirecard.rb in activemerchant-1.84.0

- old
+ new

@@ -24,11 +24,11 @@ # ppp = PBX extension # For example, a typical U.S. or Canadian number would be "+1(202)555-1234-739" indicating PBX extension 739 at phone # number 5551234 within area code 202 (country code 1). VALID_PHONE_FORMAT = /\+\d{1,3}(\(?\d{3}\)?)?\d{3}-\d{4}-\d{3}/ - self.supported_cardtypes = [ :visa, :master, :american_express, :diners_club, :jcb, :switch ] + self.supported_cardtypes = [ :visa, :master, :american_express, :diners_club, :jcb ] self.supported_countries = %w(AD CY GI IM MT RO CH AT DK GR IT MC SM TR BE EE HU LV NL SK GB BG FI IS LI NO SI VA FR IL LT PL ES CZ DE IE LU PT SE) self.homepage_url = 'http://www.wirecard.com' self.display_name = 'Wirecard' self.default_currency = 'EUR' self.money_format = :cents @@ -136,9 +136,10 @@ gsub(%r((<CreditCardNumber>)\d+(</CreditCardNumber>)), '\1[FILTERED]\2'). gsub(%r((<CVC2>)[^<]+(</CVC2>)), '\1[FILTERED]\2') end private + def clean_description(description) description.to_s.slice(0,32).encode('US-ASCII', invalid: :replace, undef: :replace, replace: '?') end def prepare_options_hash(options)