@virex-tech/paywallo-sdk 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -951,6 +951,11 @@ function usePaywallLoader(placement, visible, preloadedConfig, preloadedProducts
951
951
  const storeProducts = await getIAPService().loadProducts(productIds);
952
952
  const map = /* @__PURE__ */ new Map();
953
953
  for (const p of storeProducts) map.set(p.productId, p);
954
+ if (PaywalloClient.getConfig()?.debug) {
955
+ for (const [id, p] of map) {
956
+ console.warn(`[Paywallo][CURRENCY-CHECK] product=${id} currency=${p.currency} price="${p.price}" localizedPrice="${p.localizedPrice}" priceValue=${p.priceValue} fallbackUSD=${!p.currency || p.currency === "USD" ? "POSSIBLE" : "NO"}`);
957
+ }
958
+ }
954
959
  setProducts(map);
955
960
  } catch {
956
961
  setProducts(/* @__PURE__ */ new Map());