lib/active_merchant/billing/gateways/sage_pay.rb in activemerchant-1.48.0 vs lib/active_merchant/billing/gateways/sage_pay.rb in activemerchant-1.49.0
- old
+ new
@@ -262,14 +262,9 @@
return nil unless phone
cleansed = phone.to_s.gsub(/[^0-9+]/, '')
truncate(cleansed, 20)
end
- def truncate(value, max_size)
- return nil unless value
- value[0, max_size]
- end
-
def is_usa(country)
truncate(country, 2) == 'US'
end
def map_card_type(credit_card)