From b5953116ac11b08da3bfdf8eac5dbb8c7a76d04b Mon Sep 17 00:00:00 2001 From: Daniel Dixon Date: Mon, 18 Aug 2014 23:31:22 -0500 Subject: [PATCH] Playing around again. --- app/models/spree/gateway/authorize_net_cim.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/spree/gateway/authorize_net_cim.rb b/app/models/spree/gateway/authorize_net_cim.rb index e40b2b6c..49c827de 100644 --- a/app/models/spree/gateway/authorize_net_cim.rb +++ b/app/models/spree/gateway/authorize_net_cim.rb @@ -114,7 +114,7 @@ def options_for_create_customer_profile(payment) validation_mode = preferred_validate_on_profile_create ? preferred_server.to_sym : :none { :profile => { :merchant_customer_id => "#{Time.now.to_f}", - :ship_to_list => generate_address_hash(creditcard.checkout.ship_address), + :ship_to_list => generate_address_hash(payment.order.ship_address), :email => payment.order.email, :payment_profiles => info }, :validation_mode => validation_mode }