Skip to main content

Add currency switching to the embedded storefront SDK

I'd like to add a currency selector to my site footer, but the embedded storefront SDK doesn't seem to expose a way to change currency while keeping product prices, the cart, and checkout in sync.

The API already supports updating an order's currency, so the SDK probably needs a method like Moonbase.set_currency(currency) that updates its internal state and ensures checkout uses that currency?

Log in to comment and vote

No comments yet

Be the first to share your thoughts.