@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.
- 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 +3 -3
- package/src/components/checkout/steps/payment/stripe/useStripeIntegration.ts +5 -1
|
@@ -4223,7 +4223,7 @@ function mapPaywallData(paywall, showOnlyEligiblePlans, currentSubscriptionOverr
|
|
|
4223
4223
|
};
|
|
4224
4224
|
}
|
|
4225
4225
|
|
|
4226
|
-
var version = "6.
|
|
4226
|
+
var version = "6.9.1";
|
|
4227
4227
|
var name = "@stigg/react-sdk";
|
|
4228
4228
|
|
|
4229
4229
|
var StiggContext = /*#__PURE__*/React__default.createContext(null);
|
|
@@ -8907,12 +8907,17 @@ function useStripeIntegration() {
|
|
|
8907
8907
|
credentials = billingIntegration.credentials;
|
|
8908
8908
|
|
|
8909
8909
|
if (billingIdentifier !== Stigg.BillingVendorIdentifier.Stripe) {
|
|
8910
|
-
console.error('Currently only stripe integration is supported');
|
|
8911
8910
|
return;
|
|
8912
8911
|
}
|
|
8913
8912
|
|
|
8914
8913
|
var accountId = credentials.accountId,
|
|
8915
8914
|
publicKey = credentials.publicKey;
|
|
8915
|
+
|
|
8916
|
+
if (!accountId || !publicKey) {
|
|
8917
|
+
console.error('Stripe account ID or public key is missing');
|
|
8918
|
+
return;
|
|
8919
|
+
}
|
|
8920
|
+
|
|
8916
8921
|
setStripePromise(stripeJs.loadStripe(publicKey, {
|
|
8917
8922
|
stripeAccount: accountId
|
|
8918
8923
|
}));
|