lib/active_shipping/carriers/usps.rb in active_shipping-1.1.2 vs lib/active_shipping/carriers/usps.rb in active_shipping-1.1.3
- old
+ new
@@ -254,10 +254,10 @@
xml.TrackFieldRequest('USERID' => @options[:login]) do
xml.Revision { xml.text('1') }
xml.ClientIp { xml.text(@options[:client_ip] || '127.0.0.1') }
xml.SourceId { xml.text(@options[:source_id] || 'active_shipping') }
xml.TrackID('ID' => tracking_number) do
- xml.DestinationZipCode { xml.text(@options[:destination_zip])} if @options[:destination_zip]
+ xml.DestinationZipCode { xml.text(strip_zip(@options[:destination_zip]))} if @options[:destination_zip]
if @options[:mailing_date]
formatted_date = @options[:mailing_date].strftime('%Y-%m-%d')
xml.MailingDate { xml.text(formatted_date)}
end
end