diff --git a/lib/fedex/request/rate.rb b/lib/fedex/request/rate.rb index 20aaa0d8..0f53fd97 100644 --- a/lib/fedex/request/rate.rb +++ b/lib/fedex/request/rate.rb @@ -7,7 +7,7 @@ class Rate < Base def process_request api_response = self.class.post(api_url, :body => build_xml) puts api_response if @debug - response = parse_response(api_response) + response = parse_response(api_response.parsed_response) if success?(response) rate_reply_details = response[:rate_reply][:rate_reply_details] || [] rate_reply_details = [rate_reply_details] if rate_reply_details.is_a?(Hash)