fixed bug where state not found is Paypal returns state abbr in lowercase
Fixes #71
This commit is contained in:
parent
5faeb703f6
commit
d9873ff63f
|
@ -80,7 +80,7 @@ module Spree
|
||||||
# phone is currently blanked in AM's PPX response lib
|
# phone is currently blanked in AM's PPX response lib
|
||||||
:phone => @ppx_details.params["phone"] || "(not given)"
|
: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
|
order_ship_address.state = state
|
||||||
else
|
else
|
||||||
order_ship_address.state_name = ship_address["state"]
|
order_ship_address.state_name = ship_address["state"]
|
||||||
|
|
Loading…
Reference in New Issue