@funnelsgrove/payments 0.7.6 → 0.7.9
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/providers/solidgate/components/SolidgateCheckoutDialog.js +3 -3
- package/dist/providers/solidgate/services/solidgate.service.d.ts +1 -1
- package/dist/providers/solidgate/services/solidgate.service.js +1 -1
- package/dist/providers/stripe/services/stripe.service.d.ts +1 -0
- package/package.json +3 -3
|
@@ -105,14 +105,14 @@ export function SolidgateCheckoutDialog({ open, request, checkoutAnalytics, cont
|
|
|
105
105
|
onStateChangeRef.current = onStateChange;
|
|
106
106
|
onSuccessRef.current = onSuccess;
|
|
107
107
|
}, [checkoutAnalytics, copy, onError, onStateChange, onSuccess]);
|
|
108
|
-
const { discountKeyOrProviderId, failUrl, funnelEndUserId, funnelId, idempotencyKey, offerSetId,
|
|
108
|
+
const { discountKeyOrProviderId, failUrl, funnelPlanKey, funnelEndUserId, funnelId, idempotencyKey, offerSetId, returnUrl, runtimeConfig, successUrl, } = request;
|
|
109
109
|
const { apiBaseUrl, funnelId: runtimeFunnelId, funnelSdkPublishableKey, funnelVersionId, } = runtimeConfig || {};
|
|
110
110
|
const hasRuntimeConfig = runtimeConfig !== undefined;
|
|
111
111
|
const normalizedRequest = useMemo(() => ({
|
|
112
112
|
funnelId: (funnelId === null || funnelId === void 0 ? void 0 : funnelId.trim()) || null,
|
|
113
113
|
funnelEndUserId: funnelEndUserId.trim(),
|
|
114
114
|
offerSetId: offerSetId.trim(),
|
|
115
|
-
|
|
115
|
+
funnelPlanKey: funnelPlanKey.trim(),
|
|
116
116
|
idempotencyKey: idempotencyKey.trim(),
|
|
117
117
|
discountKeyOrProviderId: (discountKeyOrProviderId === null || discountKeyOrProviderId === void 0 ? void 0 : discountKeyOrProviderId.trim()) || null,
|
|
118
118
|
returnUrl: returnUrl.trim(),
|
|
@@ -128,13 +128,13 @@ export function SolidgateCheckoutDialog({ open, request, checkoutAnalytics, cont
|
|
|
128
128
|
apiBaseUrl,
|
|
129
129
|
discountKeyOrProviderId,
|
|
130
130
|
failUrl,
|
|
131
|
+
funnelPlanKey,
|
|
131
132
|
funnelEndUserId,
|
|
132
133
|
funnelId,
|
|
133
134
|
funnelSdkPublishableKey,
|
|
134
135
|
funnelVersionId,
|
|
135
136
|
idempotencyKey,
|
|
136
137
|
offerSetId,
|
|
137
|
-
projectBillingPlanId,
|
|
138
138
|
returnUrl,
|
|
139
139
|
hasRuntimeConfig,
|
|
140
140
|
runtimeFunnelId,
|
|
@@ -25,7 +25,7 @@ export type PrepareSolidgateCheckoutInput = {
|
|
|
25
25
|
funnelId?: string | null;
|
|
26
26
|
funnelEndUserId: string;
|
|
27
27
|
offerSetId: string;
|
|
28
|
-
|
|
28
|
+
funnelPlanKey: string;
|
|
29
29
|
idempotencyKey: string;
|
|
30
30
|
discountKeyOrProviderId?: string | null;
|
|
31
31
|
returnUrl: string;
|
|
@@ -103,7 +103,7 @@ export const prepareSolidgateCheckout = async (input) => {
|
|
|
103
103
|
funnelId: resolveFunnelId(input.funnelId, input.runtimeConfig),
|
|
104
104
|
funnelEndUserId: requiredString(input.funnelEndUserId, 'funnelEndUserId'),
|
|
105
105
|
offerSetId: requiredString(input.offerSetId, 'offerSetId'),
|
|
106
|
-
|
|
106
|
+
funnelPlanKey: requiredString(input.funnelPlanKey, 'funnelPlanKey'),
|
|
107
107
|
idempotencyKey: requiredString(input.idempotencyKey, 'idempotencyKey'),
|
|
108
108
|
discountKeyOrProviderId: ((_a = input.discountKeyOrProviderId) === null || _a === void 0 ? void 0 : _a.trim()) || null,
|
|
109
109
|
returnUrl: requiredString(input.returnUrl, 'returnUrl'),
|
|
@@ -5,6 +5,7 @@ import type { RuntimeMode } from '@funnelsgrove/runtime';
|
|
|
5
5
|
import { type RemoteProjectBillingPlan } from '../../../services/planCatalog.service.js';
|
|
6
6
|
export type PaywallPlan = {
|
|
7
7
|
id: string;
|
|
8
|
+
funnelPlanKey?: string;
|
|
8
9
|
projectPlanId?: string;
|
|
9
10
|
offerSetId?: string;
|
|
10
11
|
offerSetKey?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funnelsgrove/payments",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.9",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/The-Solid-Grove/funnelsgrove.git",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"test:run": "vitest run --passWithNoTests"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@funnelsgrove/analytics": "^0.1.
|
|
36
|
-
"@funnelsgrove/runtime": "^0.7.
|
|
35
|
+
"@funnelsgrove/analytics": "^0.1.67",
|
|
36
|
+
"@funnelsgrove/runtime": "^0.7.19",
|
|
37
37
|
"@solidgate/react-sdk": "1.34.0",
|
|
38
38
|
"@stripe/react-stripe-js": "^5.6.0",
|
|
39
39
|
"@stripe/stripe-js": "^8.7.0",
|