fixed bug where state not found is Paypal returns state abbr in lowercase

Fixes #71
This commit is contained in:
Josh Shupack 2012-07-15 17:08:35 -07:00 committed by Ryan Bigg
parent 5faeb703f6
commit d9873ff63f
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ module Spree
# phone is currently blanked in AM's PPX response lib
:phone => @ppx_details.params["phone"] || "(not given)"
if (state = Spree::State.find_by_abbr(ship_address["state"]))
if (state = Spree::State.find_by_abbr(ship_address["state"].upcase))
order_ship_address.state = state
else
order_ship_address.state_name = ship_address["state"]