@stigg/react-sdk 6.8.0 → 6.9.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.
@@ -4409,7 +4409,7 @@ function mapPaywallData(paywall, showOnlyEligiblePlans, currentSubscriptionOverr
4409
4409
  };
4410
4410
  }
4411
4411
 
4412
- var version = "6.8.0";
4412
+ var version = "6.9.1";
4413
4413
  var name = "@stigg/react-sdk";
4414
4414
 
4415
4415
  var StiggContext = /*#__PURE__*/React__default.createContext(null);
@@ -9285,12 +9285,17 @@ function useStripeIntegration() {
9285
9285
  credentials = billingIntegration.credentials;
9286
9286
 
9287
9287
  if (billingIdentifier !== BillingVendorIdentifier.Stripe) {
9288
- console.error('Currently only stripe integration is supported');
9289
9288
  return;
9290
9289
  }
9291
9290
 
9292
9291
  var accountId = credentials.accountId,
9293
9292
  publicKey = credentials.publicKey;
9293
+
9294
+ if (!accountId || !publicKey) {
9295
+ console.error('Stripe account ID or public key is missing');
9296
+ return;
9297
+ }
9298
+
9294
9299
  setStripePromise(loadStripe(publicKey, {
9295
9300
  stripeAccount: accountId
9296
9301
  }));