@schematichq/schematic-components 1.1.2 → 1.1.3
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.
|
@@ -10188,7 +10188,7 @@ var EmbedProvider = ({
|
|
|
10188
10188
|
});
|
|
10189
10189
|
const customHeaders = (0, import_react12.useMemo)(
|
|
10190
10190
|
() => ({
|
|
10191
|
-
"X-Schematic-Components-Version": "1.1.
|
|
10191
|
+
"X-Schematic-Components-Version": "1.1.3",
|
|
10192
10192
|
"X-Schematic-Session-ID": sessionIdRef.current
|
|
10193
10193
|
}),
|
|
10194
10194
|
[]
|
|
@@ -16369,9 +16369,10 @@ var PaymentMethodDetails = ({
|
|
|
16369
16369
|
);
|
|
16370
16370
|
(0, import_react46.useEffect)(() => {
|
|
16371
16371
|
if (!stripe && setupIntent) {
|
|
16372
|
-
|
|
16372
|
+
let publishableKey = setupIntent.publishableKey || setupIntent.schematicPublishableKey;
|
|
16373
16373
|
const stripeOptions = {};
|
|
16374
16374
|
if (setupIntent.accountId) {
|
|
16375
|
+
publishableKey = setupIntent.schematicPublishableKey;
|
|
16375
16376
|
stripeOptions.stripeAccount = setupIntent.accountId;
|
|
16376
16377
|
}
|
|
16377
16378
|
setStripe(loadStripe(publishableKey, stripeOptions));
|
|
@@ -10131,7 +10131,7 @@ var EmbedProvider = ({
|
|
|
10131
10131
|
});
|
|
10132
10132
|
const customHeaders = useMemo3(
|
|
10133
10133
|
() => ({
|
|
10134
|
-
"X-Schematic-Components-Version": "1.1.
|
|
10134
|
+
"X-Schematic-Components-Version": "1.1.3",
|
|
10135
10135
|
"X-Schematic-Session-ID": sessionIdRef.current
|
|
10136
10136
|
}),
|
|
10137
10137
|
[]
|
|
@@ -16326,9 +16326,10 @@ var PaymentMethodDetails = ({
|
|
|
16326
16326
|
);
|
|
16327
16327
|
useEffect7(() => {
|
|
16328
16328
|
if (!stripe && setupIntent) {
|
|
16329
|
-
|
|
16329
|
+
let publishableKey = setupIntent.publishableKey || setupIntent.schematicPublishableKey;
|
|
16330
16330
|
const stripeOptions = {};
|
|
16331
16331
|
if (setupIntent.accountId) {
|
|
16332
|
+
publishableKey = setupIntent.schematicPublishableKey;
|
|
16332
16333
|
stripeOptions.stripeAccount = setupIntent.accountId;
|
|
16333
16334
|
}
|
|
16334
16335
|
setStripe(loadStripe(publishableKey, stripeOptions));
|