You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 13, 2018. It is now read-only.
# Build Active shipping objectsspecs=Package.find(shipment.package_id)package=ActiveMerchant::Shipping::Package.new(specs.weight,[specs.height,specs.length,specs.width])leave=Location.find(shipment.source_id)arrive=Location.find(shipment.destination_id)origin=ActiveMerchant::Shipping::Location.new(:country=>leave.country,:province=>leave.province,:city=>leave.city,:zip=>leave.post_code)destination=ActiveMerchant::Shipping::Location.new(:country=>arrive.country,:province=>arrive.province,:city=>arrive.city,:zip=>arrive.post_code)
block in sanitize_zipactive_shipping (0.10.0) lib/active_shipping/shipping/carriers/canada_post_pws.rb
742 def sanitize_zip(hash)
743 [:postal_code, :zip].each do |attr|
744 hash[attr].gsub!(/\s+/,'') if hash[attr]
745 end
746 hash
747 end
attr :postal_code
hash Seattle, WA, 98109 United States
88 responseCP = @cp.find_rates(origin, destination, packages)
The text was updated successfully, but these errors were encountered: