@stigg/react-sdk 6.9.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.
- package/dist/react-sdk.cjs.development.js +7 -2
- package/dist/react-sdk.cjs.development.js.map +1 -1
- package/dist/react-sdk.cjs.production.min.js +1 -1
- package/dist/react-sdk.cjs.production.min.js.map +1 -1
- package/dist/react-sdk.esm.js +7 -2
- package/dist/react-sdk.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/checkout/steps/payment/stripe/useStripeIntegration.ts +5 -1
package/dist/react-sdk.esm.js
CHANGED
|
@@ -4409,7 +4409,7 @@ function mapPaywallData(paywall, showOnlyEligiblePlans, currentSubscriptionOverr
|
|
|
4409
4409
|
};
|
|
4410
4410
|
}
|
|
4411
4411
|
|
|
4412
|
-
var version = "6.9.
|
|
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
|
}));
|