@paykit-sdk/stripe 1.2.3 → 1.3.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/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/stripe-provider.d.mts +2 -1
- package/dist/stripe-provider.d.ts +2 -1
- package/package.json +11 -9
package/dist/index.js
CHANGED
|
@@ -995,7 +995,7 @@ var stripe = () => {
|
|
|
995
995
|
);
|
|
996
996
|
return createStripe({
|
|
997
997
|
apiKey: envVars.STRIPE_API_KEY,
|
|
998
|
-
apiVersion: "
|
|
998
|
+
apiVersion: "2026-06-24.dahlia",
|
|
999
999
|
isSandbox: envVars.STRIPE_API_KEY.includes("_test_") || process.env.NODE_ENV !== "production"
|
|
1000
1000
|
});
|
|
1001
1001
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -989,7 +989,7 @@ var stripe = () => {
|
|
|
989
989
|
);
|
|
990
990
|
return createStripe({
|
|
991
991
|
apiKey: envVars.STRIPE_API_KEY,
|
|
992
|
-
apiVersion: "
|
|
992
|
+
apiVersion: "2026-06-24.dahlia",
|
|
993
993
|
isSandbox: envVars.STRIPE_API_KEY.includes("_test_") || process.env.NODE_ENV !== "production"
|
|
994
994
|
});
|
|
995
995
|
};
|
|
@@ -8,9 +8,10 @@ interface StripeMetadata extends ProviderMetadataRegistry {
|
|
|
8
8
|
subscription: Stripe.SubscriptionCreateParams;
|
|
9
9
|
refund: Stripe.RefundCreateParams;
|
|
10
10
|
}
|
|
11
|
-
interface StripeOptions extends PaykitProviderOptions, Stripe.StripeConfig {
|
|
11
|
+
interface StripeOptions extends Omit<PaykitProviderOptions, 'isSandbox'>, Stripe.StripeConfig {
|
|
12
12
|
/** Stripe secret key (sk_test_... or sk_live_...) */
|
|
13
13
|
apiKey: string;
|
|
14
|
+
isSandbox?: boolean;
|
|
14
15
|
}
|
|
15
16
|
type StripeRawEvents = {
|
|
16
17
|
[K in Stripe.Event.Type as `stripe.${K}`]: Extract<Stripe.Event, {
|
|
@@ -8,9 +8,10 @@ interface StripeMetadata extends ProviderMetadataRegistry {
|
|
|
8
8
|
subscription: Stripe.SubscriptionCreateParams;
|
|
9
9
|
refund: Stripe.RefundCreateParams;
|
|
10
10
|
}
|
|
11
|
-
interface StripeOptions extends PaykitProviderOptions, Stripe.StripeConfig {
|
|
11
|
+
interface StripeOptions extends Omit<PaykitProviderOptions, 'isSandbox'>, Stripe.StripeConfig {
|
|
12
12
|
/** Stripe secret key (sk_test_... or sk_live_...) */
|
|
13
13
|
apiKey: string;
|
|
14
|
+
isSandbox?: boolean;
|
|
14
15
|
}
|
|
15
16
|
type StripeRawEvents = {
|
|
16
17
|
[K in Stripe.Event.Type as `stripe.${K}`]: Extract<Stripe.Event, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paykit-sdk/stripe",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Stripe provider for PayKit",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -8,9 +8,6 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "tsup"
|
|
13
|
-
},
|
|
14
11
|
"paykit": {
|
|
15
12
|
"type": "provider"
|
|
16
13
|
},
|
|
@@ -23,15 +20,15 @@
|
|
|
23
20
|
"author": "Emmanuel Odii",
|
|
24
21
|
"license": "ISC",
|
|
25
22
|
"dependencies": {
|
|
26
|
-
"stripe": "^
|
|
23
|
+
"stripe": "^22.3.1"
|
|
27
24
|
},
|
|
28
25
|
"peerDependencies": {
|
|
29
|
-
"@paykit-sdk/core": "
|
|
26
|
+
"@paykit-sdk/core": "^1.2.3"
|
|
30
27
|
},
|
|
31
28
|
"devDependencies": {
|
|
32
|
-
"@paykit-sdk/core": "workspace:*",
|
|
33
29
|
"tsup": "^8.0.0",
|
|
34
|
-
"typescript": "^5.0.0"
|
|
30
|
+
"typescript": "^5.0.0",
|
|
31
|
+
"@paykit-sdk/core": "1.3.1"
|
|
35
32
|
},
|
|
36
33
|
"publishConfig": {
|
|
37
34
|
"access": "public"
|
|
@@ -42,5 +39,10 @@
|
|
|
42
39
|
},
|
|
43
40
|
"bugs": {
|
|
44
41
|
"url": "https://github.com/usepaykit/paykit-sdk/issues"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "tsup",
|
|
45
|
+
"test": "vitest run --config ../../vitest.config.ts packages/stripe/src",
|
|
46
|
+
"typecheck": "tsc --noEmit"
|
|
45
47
|
}
|
|
46
|
-
}
|
|
48
|
+
}
|