lib/active_merchant/billing/integrations/paypal/helper.rb in activemerchant-1.42.2 vs lib/active_merchant/billing/integrations/paypal/helper.rb in activemerchant-1.42.3
- old
+ new
@@ -67,10 +67,10 @@
add_field(mappings[:shipping_address][:country], country_code)
if params.has_key?(:phone)
phone = params.delete(:phone).to_s
- # Whipe all non digits
+ # Wipe all non digits
phone.gsub!(/\D+/, '')
if ['US', 'CA'].include?(country_code) && phone =~ /(\d{3})(\d{3})(\d{4})$/
add_field('night_phone_a', $1)
add_field('night_phone_b', $2)