@flopay/shared 1.2.5 → 1.2.7

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.cjs CHANGED
@@ -181,7 +181,7 @@ var PAYMENT_METHOD_LOGOS = {
181
181
  };
182
182
 
183
183
  // src/constants.ts
184
- var SDK_VERSION = "1.2.5";
184
+ var SDK_VERSION = "1.2.7";
185
185
  var BILLING_API_URL_STAGING = "https://api.stage.flopay.com";
186
186
  var BILLING_API_URL_PRODUCTION = "https://api.flopay.com";
187
187
  var DEFAULT_API_BASE_URL = BILLING_API_URL_STAGING;
@@ -1957,7 +1957,7 @@ function buildCheckoutDisplayData(session, options = {}) {
1957
1957
  const itemsList = [];
1958
1958
  const products = session.products ?? [];
1959
1959
  const subscriptions = products.filter((p) => p.type === "subscription");
1960
- const items = products.filter((p) => p.type === "item");
1960
+ const items = products.filter((p) => p.type !== "subscription");
1961
1961
  const resolvedCurrency = resolveSessionCurrency(session.currency, void 0, void 0, products);
1962
1962
  const currency = (resolvedCurrency ?? "USD").toUpperCase();
1963
1963
  for (const sub of subscriptions) {