payment-kit 1.22.22 → 1.22.24

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.
@@ -306,6 +306,7 @@ async function resolveOrCreatePaymentIntent(
306
306
  payment_method_types: [chainType],
307
307
  statement_descriptor: '',
308
308
  statement_descriptor_suffix: '',
309
+ setup_future_usage: 'on_session',
309
310
  metadata: formatMetadata(metadata || {}),
310
311
  };
311
312
 
@@ -0,0 +1,24 @@
1
+ import { DataTypes } from 'sequelize';
2
+
3
+ import logger from '../../libs/logger';
4
+ import { Migration } from '../migrate';
5
+
6
+ export const up: Migration = async ({ context }) => {
7
+ // Check if column already allows null
8
+ const [results] = await context.sequelize.query('PRAGMA table_info(payment_intents)');
9
+ const columnInfo = (results as any[]).find((col: any) => col.name === 'setup_future_usage');
10
+
11
+ // If column doesn't exist or already allows null (notnull = 0), skip migration
12
+ if (!columnInfo || columnInfo.notnull === 0) {
13
+ logger.info('setup_future_usage already allows null, skipping migration');
14
+ return;
15
+ }
16
+
17
+ // Change setup_future_usage column to allow null
18
+ await context.changeColumn('payment_intents', 'setup_future_usage', {
19
+ type: DataTypes.ENUM('on_session', 'off_session'),
20
+ allowNull: true,
21
+ });
22
+ };
23
+
24
+ export const down: Migration = async () => {};
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.22.22
17
+ version: 1.22.24
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.22.22",
3
+ "version": "1.22.24",
4
4
  "scripts": {
5
5
  "dev": "blocklet dev --open",
6
6
  "lint": "tsc --noEmit && eslint src api/src --ext .mjs,.js,.jsx,.ts,.tsx",
@@ -44,35 +44,35 @@
44
44
  ]
45
45
  },
46
46
  "dependencies": {
47
- "@abtnode/cron": "^1.17.3-beta-20251119-102907-28b69b76",
48
- "@arcblock/did": "^1.27.11",
49
- "@arcblock/did-connect-react": "^3.2.7",
47
+ "@abtnode/cron": "^1.17.3-beta-20251126-121502-d0926972",
48
+ "@arcblock/did": "^1.27.12",
49
+ "@arcblock/did-connect-react": "^3.2.10",
50
50
  "@arcblock/did-connect-storage-nedb": "^1.8.0",
51
- "@arcblock/did-util": "^1.27.11",
52
- "@arcblock/jwt": "^1.27.11",
53
- "@arcblock/react-hooks": "^3.2.7",
54
- "@arcblock/ux": "^3.2.7",
55
- "@arcblock/validator": "^1.27.11",
56
- "@blocklet/did-space-js": "^1.2.4",
51
+ "@arcblock/did-util": "^1.27.12",
52
+ "@arcblock/jwt": "^1.27.12",
53
+ "@arcblock/react-hooks": "^3.2.10",
54
+ "@arcblock/ux": "^3.2.10",
55
+ "@arcblock/validator": "^1.27.12",
56
+ "@blocklet/did-space-js": "^1.2.6",
57
57
  "@blocklet/error": "^0.3.3",
58
- "@blocklet/js-sdk": "^1.17.3-beta-20251119-102907-28b69b76",
59
- "@blocklet/logger": "^1.17.3-beta-20251119-102907-28b69b76",
60
- "@blocklet/payment-broker-client": "1.22.22",
61
- "@blocklet/payment-react": "1.22.22",
62
- "@blocklet/payment-vendor": "1.22.22",
63
- "@blocklet/sdk": "^1.17.3-beta-20251119-102907-28b69b76",
64
- "@blocklet/ui-react": "^3.2.7",
65
- "@blocklet/uploader": "^0.3.11",
66
- "@blocklet/xss": "^0.3.9",
58
+ "@blocklet/js-sdk": "^1.17.3-beta-20251126-121502-d0926972",
59
+ "@blocklet/logger": "^1.17.3-beta-20251126-121502-d0926972",
60
+ "@blocklet/payment-broker-client": "1.22.24",
61
+ "@blocklet/payment-react": "1.22.24",
62
+ "@blocklet/payment-vendor": "1.22.24",
63
+ "@blocklet/sdk": "^1.17.3-beta-20251126-121502-d0926972",
64
+ "@blocklet/ui-react": "^3.2.10",
65
+ "@blocklet/uploader": "^0.3.12",
66
+ "@blocklet/xss": "^0.3.10",
67
67
  "@mui/icons-material": "^7.1.2",
68
68
  "@mui/lab": "7.0.0-beta.14",
69
69
  "@mui/material": "^7.1.2",
70
70
  "@mui/system": "^7.1.1",
71
- "@ocap/asset": "^1.27.11",
72
- "@ocap/client": "^1.27.11",
73
- "@ocap/mcrypto": "^1.27.11",
74
- "@ocap/util": "^1.27.11",
75
- "@ocap/wallet": "^1.27.11",
71
+ "@ocap/asset": "^1.27.12",
72
+ "@ocap/client": "^1.27.12",
73
+ "@ocap/mcrypto": "^1.27.12",
74
+ "@ocap/util": "^1.27.12",
75
+ "@ocap/wallet": "^1.27.12",
76
76
  "@stripe/react-stripe-js": "^2.9.0",
77
77
  "@stripe/stripe-js": "^2.4.0",
78
78
  "ahooks": "^3.8.5",
@@ -127,9 +127,9 @@
127
127
  "web3": "^4.16.0"
128
128
  },
129
129
  "devDependencies": {
130
- "@abtnode/types": "^1.17.3-beta-20251119-102907-28b69b76",
130
+ "@abtnode/types": "^1.17.3-beta-20251126-121502-d0926972",
131
131
  "@arcblock/eslint-config-ts": "^0.3.3",
132
- "@blocklet/payment-types": "1.22.22",
132
+ "@blocklet/payment-types": "1.22.24",
133
133
  "@types/cookie-parser": "^1.4.9",
134
134
  "@types/cors": "^2.8.19",
135
135
  "@types/debug": "^4.1.12",
@@ -176,5 +176,5 @@
176
176
  "parser": "typescript"
177
177
  }
178
178
  },
179
- "gitHead": "4324caf5e314593d0a56b4893f503932ae83d8ae"
179
+ "gitHead": "d24ce471f0bdbf4a0ccaaa5317d4c68b4ddfd3bf"
180
180
  }