spree-contrib / spree_multi_currency

Provides UI to allow configuring multiple currencies in Spree.
http://guides.spreecommerce.org
BSD 3-Clause "New" or "Revised" License
41 stars 117 forks source link

Checkout API endpoints fails when updating an order with a shipping address #42

Open jsilland opened 9 years ago

jsilland commented 9 years ago

This is happening on a reasonably vanilla install of Spree 2.4, where spree_multi_currency 2.4-stable installed — the one customization that we have made and seems to be relevant in this case is that we set the session[:currency] field for each request based on the request's IP address, including for API requests.

The problem is relatively easy to track down:

Proposed solution (that we are likely going to go with on our end) is to include the CurrencyHelpers in the Spree::Api::BaseController

mdavo6 commented 4 years ago

Thanks @jsilland , your notes were very helpful. :+1: