diff --git a/app/services/flowcommerce_spree/order_sync.rb b/app/services/flowcommerce_spree/order_sync.rb index c89a05e8..571e3871 100644 --- a/app/services/flowcommerce_spree/order_sync.rb +++ b/app/services/flowcommerce_spree/order_sync.rb @@ -27,7 +27,10 @@ def initialize(order:, flow_session_id:) @experience = order.flow_io_experience_key @flow_session_id = flow_session_id @order = order - @client = FlowcommerceSpree.client(session_id: flow_session_id) + @client = FlowcommerceSpree.client( + default_headers: { "Authorization": "Session #{flow_session_id}" }, + authorization: nil + ) end # helper method to send complete order from Spree to flow.io