Make available exchange rate in checkout ui extensions API #613
Open
Description
Please list the related package(s)
checkout-ui-extensions
If this related to specific APIs or components, please list them here
https://shopify.dev/api/checkout-extensions/checkout/extension-points -> Shopify specific globals
Is your feature request related to a problem? Please describe.
When developing a checkout ui extension app, we do not have acces via the existing API to current currency exchange rate.
For example, in regular Shopify stores, we have this info available by accessing window.Shopify.currency.rate
, which describes the exchange rate between the store's primary market currency and the current store currency.
Currently, checkout UI extensions API provides currency information under localization.currency.current.isoCode
, but no details about the exchange rate.
Describe the changes you are looking for
To have the exchange rate provided via API similarly with localization.currency.current.isoCode