opencart/opencart — pull request #2168 by janitor61 (2014-10-30 21:55:57+00:00)
Title: bugfix - Fedex quoted rates always return account rates and ignore config setting

Small bugfix, Fedex probably changed their XML format. Searches within the RateReplyDetails nodes for multiple RatedShipmentDetails nodes, one of which (the first) should correspond to the setting 'fedex_rate_type'.

Valid values for the RateType node inside a RatedShipmentDetails are:
•	PAYOR_ACCOUNT_PACKAGE
•	PAYOR_ACCOUNT_SHIPMENT
•	PAYOR_LIST_PACKAGE
•	PAYOR_LIST_SHIPMENT
•	PAYOR_COUNTER_PACKAGE
•	PAYOR_COUNTER_SHIPMENT
•	RATED_ACCOUNT_PACKAGE
•	RATED_ACCOUNT_SHIPMENT
•	RATED_LIST_PACKAGE
•	RATED_LIST_SHIPMENT
•	RATED_COUNTER_PACKAGE
•	RATED_COUNTER_SHIPMENT
•	INCENTIVE

Thanks! OpenCart is awesome!