spree/spree_paypal_express — Issue #14: Payment confirm fails if state abbr has different casing
Author: madeindata
Created: 2011-10-27 02:55:07+00:00
State: open

Payment confirm will fail if e.g.

spree state abbr = 'QLD'

paypal state = 'Qld'

works fine if paypal state is full name e.g. 'Queensland' or if paypal has same casing as spree 'QLD'

I think the search needs to be case insensitive somehow.

[https://github.com/spree/spree_paypal_express/blob/master/app/controllers/checkout_controller_decorator.rb#L82](https://github.com/spree/spree_paypal_express/blob/master/app/controllers/checkout_controller_decorator.rb#L82)

NOTE: This is only a problem for paypal accounts who have not updated their shipping address for awhile, Paypal now forces the format of the state with a dropdown. which is good.