Fix indentation inside checkout_controller_decorator
This commit is contained in:
parent
04de23853f
commit
162107ed0a
|
@ -62,23 +62,23 @@ module Spree
|
||||||
# now save the updated order info
|
# now save the updated order info
|
||||||
|
|
||||||
Spree::PaypalAccount.create(:email => @ppx_details.params["payer"],
|
Spree::PaypalAccount.create(:email => @ppx_details.params["payer"],
|
||||||
:payer_id => @ppx_details.params["payer_id"],
|
:payer_id => @ppx_details.params["payer_id"],
|
||||||
:payer_country => @ppx_details.params["payer_country"],
|
:payer_country => @ppx_details.params["payer_country"],
|
||||||
:payer_status => @ppx_details.params["payer_status"])
|
:payer_status => @ppx_details.params["payer_status"])
|
||||||
|
|
||||||
@order.special_instructions = @ppx_details.params["note"]
|
@order.special_instructions = @ppx_details.params["note"]
|
||||||
|
|
||||||
unless payment_method.preferred_no_shipping
|
unless payment_method.preferred_no_shipping
|
||||||
ship_address = @ppx_details.address
|
ship_address = @ppx_details.address
|
||||||
order_ship_address = Spree::Address.new :firstname => @ppx_details.params["first_name"],
|
order_ship_address = Spree::Address.new :firstname => @ppx_details.params["first_name"],
|
||||||
:lastname => @ppx_details.params["last_name"],
|
:lastname => @ppx_details.params["last_name"],
|
||||||
:address1 => ship_address["address1"],
|
:address1 => ship_address["address1"],
|
||||||
:address2 => ship_address["address2"],
|
:address2 => ship_address["address2"],
|
||||||
:city => ship_address["city"],
|
:city => ship_address["city"],
|
||||||
:country => Spree::Country.find_by_iso(ship_address["country"]),
|
:country => Spree::Country.find_by_iso(ship_address["country"]),
|
||||||
:zipcode => ship_address["zip"],
|
:zipcode => ship_address["zip"],
|
||||||
# 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"]))
|
||||||
order_ship_address.state = state
|
order_ship_address.state = state
|
||||||
|
|
Loading…
Reference in New Issue