payment-kit 1.13.307 → 1.13.308

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.
@@ -24,10 +24,7 @@ const verifyWebhookSig = async (req: Request, res: Response, next: NextFunction)
24
24
 
25
25
  const stripe = method.getStripeClient();
26
26
  const settings = PaymentMethod.decryptSettings(method.settings);
27
- const secret =
28
- process.env.BLOCKLET_MODE === 'development' && process.env.STRIPE_WEBHOOK_SECRET
29
- ? process.env.STRIPE_WEBHOOK_SECRET
30
- : settings.stripe?.webhook_signing_secret;
27
+ const secret = process.env.STRIPE_WEBHOOK_SECRET || settings.stripe?.webhook_signing_secret;
31
28
  req.stripeEvent = stripe.webhooks.constructEvent(req.body, signature, secret as string);
32
29
  req.stripeClient = stripe;
33
30
 
package/blocklet.yml CHANGED
@@ -14,7 +14,7 @@ repository:
14
14
  type: git
15
15
  url: git+https://github.com/blocklet/payment-kit.git
16
16
  specVersion: 1.2.8
17
- version: 1.13.307
17
+ version: 1.13.308
18
18
  logo: logo.png
19
19
  files:
20
20
  - dist
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payment-kit",
3
- "version": "1.13.307",
3
+ "version": "1.13.308",
4
4
  "scripts": {
5
5
  "dev": "blocklet dev --open",
6
6
  "eject": "vite eject",
@@ -52,7 +52,7 @@
52
52
  "@arcblock/validator": "^1.18.124",
53
53
  "@blocklet/js-sdk": "1.16.28",
54
54
  "@blocklet/logger": "1.16.28",
55
- "@blocklet/payment-react": "1.13.307",
55
+ "@blocklet/payment-react": "1.13.308",
56
56
  "@blocklet/sdk": "1.16.28",
57
57
  "@blocklet/ui-react": "^2.10.3",
58
58
  "@blocklet/uploader": "^0.1.20",
@@ -118,7 +118,7 @@
118
118
  "devDependencies": {
119
119
  "@abtnode/types": "1.16.28",
120
120
  "@arcblock/eslint-config-ts": "^0.3.2",
121
- "@blocklet/payment-types": "1.13.307",
121
+ "@blocklet/payment-types": "1.13.308",
122
122
  "@types/cookie-parser": "^1.4.7",
123
123
  "@types/cors": "^2.8.17",
124
124
  "@types/debug": "^4.1.12",
@@ -160,5 +160,5 @@
160
160
  "parser": "typescript"
161
161
  }
162
162
  },
163
- "gitHead": "2882cb539e9696522679d4d9ac5091ef3395d31c"
163
+ "gitHead": "a3e617e1e3a0d2378b111ade509635ff3826d8ea"
164
164
  }