payment-kit 1.13.227 → 1.13.229
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/blocklet.yml +1 -1
- package/package.json +30 -30
- package/src/pages/admin/billing/invoices/detail.tsx +13 -0
- package/src/pages/admin/payments/intents/detail.tsx +13 -0
- package/src/pages/admin/payments/payouts/detail.tsx +13 -0
- package/src/pages/admin/payments/refunds/detail.tsx +13 -0
- package/src/pages/customer/invoice/detail.tsx +13 -1
package/blocklet.yml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "payment-kit",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.229",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "cross-env COMPONENT_STORE_URL=https://test.store.blocklet.dev blocklet dev --open",
|
|
6
6
|
"eject": "vite eject",
|
|
@@ -45,30 +45,30 @@
|
|
|
45
45
|
"@abtnode/cron": "1.16.25",
|
|
46
46
|
"@arcblock/did": "^1.18.115",
|
|
47
47
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
48
|
-
"@arcblock/did-connect": "^2.9.
|
|
48
|
+
"@arcblock/did-connect": "^2.9.68",
|
|
49
49
|
"@arcblock/did-util": "^1.18.115",
|
|
50
50
|
"@arcblock/jwt": "^1.18.115",
|
|
51
|
-
"@arcblock/ux": "^2.9.
|
|
51
|
+
"@arcblock/ux": "^2.9.68",
|
|
52
52
|
"@arcblock/validator": "^1.18.115",
|
|
53
53
|
"@blocklet/logger": "1.16.25",
|
|
54
|
-
"@blocklet/payment-react": "1.13.
|
|
54
|
+
"@blocklet/payment-react": "1.13.229",
|
|
55
55
|
"@blocklet/sdk": "1.16.25",
|
|
56
|
-
"@blocklet/ui-react": "^2.9.
|
|
56
|
+
"@blocklet/ui-react": "^2.9.68",
|
|
57
57
|
"@blocklet/uploader": "^0.0.76",
|
|
58
|
-
"@mui/icons-material": "^5.15.
|
|
59
|
-
"@mui/lab": "^5.0.0-alpha.
|
|
60
|
-
"@mui/material": "^5.15.
|
|
61
|
-
"@mui/styles": "^5.15.
|
|
62
|
-
"@mui/system": "^5.15.
|
|
58
|
+
"@mui/icons-material": "^5.15.15",
|
|
59
|
+
"@mui/lab": "^5.0.0-alpha.170",
|
|
60
|
+
"@mui/material": "^5.15.15",
|
|
61
|
+
"@mui/styles": "^5.15.15",
|
|
62
|
+
"@mui/system": "^5.15.15",
|
|
63
63
|
"@ocap/asset": "^1.18.115",
|
|
64
64
|
"@ocap/client": "^1.18.115",
|
|
65
65
|
"@ocap/mcrypto": "^1.18.115",
|
|
66
66
|
"@ocap/util": "^1.18.115",
|
|
67
67
|
"@ocap/wallet": "^1.18.115",
|
|
68
68
|
"@react-pdf/renderer": "^3.4.2",
|
|
69
|
-
"@stripe/react-stripe-js": "^2.
|
|
69
|
+
"@stripe/react-stripe-js": "^2.7.0",
|
|
70
70
|
"@stripe/stripe-js": "^2.4.0",
|
|
71
|
-
"ahooks": "^3.7.
|
|
71
|
+
"ahooks": "^3.7.11",
|
|
72
72
|
"axios": "^0.27.2",
|
|
73
73
|
"body-parser": "^1.20.2",
|
|
74
74
|
"cls-hooked": "^4.2.2",
|
|
@@ -78,15 +78,15 @@
|
|
|
78
78
|
"date-fns": "^3.6.0",
|
|
79
79
|
"dayjs": "^1.11.10",
|
|
80
80
|
"dotenv-flow": "^3.3.0",
|
|
81
|
-
"ethers": "^6.
|
|
82
|
-
"express": "^4.
|
|
81
|
+
"ethers": "^6.12.0",
|
|
82
|
+
"express": "^4.19.2",
|
|
83
83
|
"express-async-errors": "^3.1.1",
|
|
84
84
|
"express-history-api-fallback": "^2.2.1",
|
|
85
85
|
"fastq": "^1.17.1",
|
|
86
86
|
"flat": "^5.0.2",
|
|
87
87
|
"google-libphonenumber": "^3.2.34",
|
|
88
88
|
"iframe-resizer-react": "^1.1.0",
|
|
89
|
-
"joi": "^17.12.
|
|
89
|
+
"joi": "^17.12.3",
|
|
90
90
|
"json-stable-stringify": "^1.1.1",
|
|
91
91
|
"lodash": "^4.17.21",
|
|
92
92
|
"morgan": "^1.10.0",
|
|
@@ -97,37 +97,37 @@
|
|
|
97
97
|
"pretty-ms-i18n": "^1.0.3",
|
|
98
98
|
"react": "^18.2.0",
|
|
99
99
|
"react-dom": "^18.2.0",
|
|
100
|
-
"react-error-boundary": "^4.0.
|
|
101
|
-
"react-hook-form": "^7.
|
|
100
|
+
"react-error-boundary": "^4.0.13",
|
|
101
|
+
"react-hook-form": "^7.51.3",
|
|
102
102
|
"react-international-phone": "^3.1.2",
|
|
103
|
-
"react-router-dom": "^6.22.
|
|
103
|
+
"react-router-dom": "^6.22.3",
|
|
104
104
|
"recharts": "^2.12.5",
|
|
105
105
|
"rimraf": "^3.0.2",
|
|
106
|
-
"sequelize": "^6.
|
|
106
|
+
"sequelize": "^6.37.3",
|
|
107
107
|
"sql-where-parser": "^2.2.1",
|
|
108
108
|
"sqlite3": "^5.1.7",
|
|
109
109
|
"stripe": "^13.11.0",
|
|
110
110
|
"typewriter-effect": "^2.21.0",
|
|
111
|
-
"ufo": "^1.
|
|
112
|
-
"umzug": "^3.
|
|
111
|
+
"ufo": "^1.5.3",
|
|
112
|
+
"umzug": "^3.8.0",
|
|
113
113
|
"use-bus": "^2.5.2",
|
|
114
114
|
"validator": "^13.11.0"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
117
|
"@abtnode/types": "1.16.25",
|
|
118
118
|
"@arcblock/eslint-config-ts": "^0.3.0",
|
|
119
|
-
"@blocklet/payment-types": "1.13.
|
|
120
|
-
"@types/cookie-parser": "^1.4.
|
|
119
|
+
"@blocklet/payment-types": "1.13.229",
|
|
120
|
+
"@types/cookie-parser": "^1.4.7",
|
|
121
121
|
"@types/cors": "^2.8.17",
|
|
122
122
|
"@types/dotenv-flow": "^3.3.3",
|
|
123
123
|
"@types/express": "^4.17.21",
|
|
124
|
-
"@types/node": "^18.19.
|
|
125
|
-
"@types/react": "^18.2.
|
|
126
|
-
"@types/react-dom": "^18.2.
|
|
124
|
+
"@types/node": "^18.19.31",
|
|
125
|
+
"@types/react": "^18.2.79",
|
|
126
|
+
"@types/react-dom": "^18.2.25",
|
|
127
127
|
"@vitejs/plugin-react": "^4.2.1",
|
|
128
128
|
"bumpp": "^8.2.1",
|
|
129
129
|
"cross-env": "^7.0.3",
|
|
130
|
-
"eslint": "^8.
|
|
130
|
+
"eslint": "^8.57.0",
|
|
131
131
|
"import-sort-style-module": "^6.0.0",
|
|
132
132
|
"jest": "^29.7.0",
|
|
133
133
|
"lint-staged": "^12.5.0",
|
|
@@ -137,9 +137,9 @@
|
|
|
137
137
|
"prettier-plugin-import-sort": "^0.0.7",
|
|
138
138
|
"ts-jest": "^29.1.2",
|
|
139
139
|
"ts-node": "^10.9.2",
|
|
140
|
-
"type-fest": "^4.
|
|
140
|
+
"type-fest": "^4.15.0",
|
|
141
141
|
"typescript": "^4.9.5",
|
|
142
|
-
"vite": "^5.2.
|
|
142
|
+
"vite": "^5.2.9",
|
|
143
143
|
"vite-plugin-blocklet": "^0.7.9",
|
|
144
144
|
"vite-plugin-node-polyfills": "^0.21.0",
|
|
145
145
|
"vite-plugin-svgr": "^4.2.0",
|
|
@@ -155,5 +155,5 @@
|
|
|
155
155
|
"parser": "typescript"
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
|
-
"gitHead": "
|
|
158
|
+
"gitHead": "7def3178288871dff00ba89e16c5adcec6d4dfc9"
|
|
159
159
|
}
|
|
@@ -3,6 +3,7 @@ import { useLocaleContext } from '@arcblock/ux/lib/Locale/context';
|
|
|
3
3
|
import Toast from '@arcblock/ux/lib/Toast';
|
|
4
4
|
import {
|
|
5
5
|
Status,
|
|
6
|
+
TxGas,
|
|
6
7
|
TxLink,
|
|
7
8
|
api,
|
|
8
9
|
formatBNStr,
|
|
@@ -148,6 +149,18 @@ export default function InvoiceDetail(props: { id: string }) {
|
|
|
148
149
|
/>
|
|
149
150
|
}
|
|
150
151
|
/>
|
|
152
|
+
{!!data.paymentIntent.payment_details?.ethereum && (
|
|
153
|
+
<InfoRow
|
|
154
|
+
label={t('common.txGas')}
|
|
155
|
+
value={
|
|
156
|
+
<TxGas
|
|
157
|
+
details={data.paymentIntent.payment_details as any}
|
|
158
|
+
method={data.paymentMethod}
|
|
159
|
+
currency={data.paymentCurrency}
|
|
160
|
+
/>
|
|
161
|
+
}
|
|
162
|
+
/>
|
|
163
|
+
)}
|
|
151
164
|
{data.paymentIntent && data.paymentIntent.payment_details && (
|
|
152
165
|
<InfoRow
|
|
153
166
|
label={t(`common.${data.paymentIntent.payment_details?.arcblock?.type || 'transfer'}TxHash`)}
|
|
@@ -4,6 +4,7 @@ import Toast from '@arcblock/ux/lib/Toast';
|
|
|
4
4
|
import {
|
|
5
5
|
Amount,
|
|
6
6
|
Status,
|
|
7
|
+
TxGas,
|
|
7
8
|
TxLink,
|
|
8
9
|
api,
|
|
9
10
|
formatBNStr,
|
|
@@ -154,6 +155,18 @@ export default function PaymentIntentDetail(props: { id: string }) {
|
|
|
154
155
|
/>
|
|
155
156
|
}
|
|
156
157
|
/>
|
|
158
|
+
{!!data.payment_details?.ethereum && (
|
|
159
|
+
<InfoRow
|
|
160
|
+
label={t('common.txGas')}
|
|
161
|
+
value={
|
|
162
|
+
<TxGas
|
|
163
|
+
details={data.payment_details as any}
|
|
164
|
+
method={data.paymentMethod}
|
|
165
|
+
currency={data.paymentCurrency}
|
|
166
|
+
/>
|
|
167
|
+
}
|
|
168
|
+
/>
|
|
169
|
+
)}
|
|
157
170
|
<InfoRow
|
|
158
171
|
label={t(`common.${data.payment_details?.arcblock?.type || 'transfer'}TxHash`)}
|
|
159
172
|
value={<TxLink details={data.payment_details as any} method={data.paymentMethod} />}
|
|
@@ -4,6 +4,7 @@ import Toast from '@arcblock/ux/lib/Toast';
|
|
|
4
4
|
import {
|
|
5
5
|
Amount,
|
|
6
6
|
Status,
|
|
7
|
+
TxGas,
|
|
7
8
|
TxLink,
|
|
8
9
|
api,
|
|
9
10
|
formatBNStr,
|
|
@@ -151,6 +152,18 @@ export default function PayoutDetail(props: { id: string }) {
|
|
|
151
152
|
/>
|
|
152
153
|
}
|
|
153
154
|
/>
|
|
155
|
+
{!!data.payment_details?.ethereum && (
|
|
156
|
+
<InfoRow
|
|
157
|
+
label={t('common.txGas')}
|
|
158
|
+
value={
|
|
159
|
+
<TxGas
|
|
160
|
+
details={data.payment_details as any}
|
|
161
|
+
method={data.paymentMethod}
|
|
162
|
+
currency={data.paymentCurrency}
|
|
163
|
+
/>
|
|
164
|
+
}
|
|
165
|
+
/>
|
|
166
|
+
)}
|
|
154
167
|
<InfoRow
|
|
155
168
|
label={t(`common.${data.payment_details?.arcblock?.type || 'transfer'}TxHash`)}
|
|
156
169
|
value={<TxLink details={data.payment_details as any} method={data.paymentMethod} />}
|
|
@@ -4,6 +4,7 @@ import Toast from '@arcblock/ux/lib/Toast';
|
|
|
4
4
|
import {
|
|
5
5
|
Amount,
|
|
6
6
|
Status,
|
|
7
|
+
TxGas,
|
|
7
8
|
TxLink,
|
|
8
9
|
api,
|
|
9
10
|
formatBNStr,
|
|
@@ -151,6 +152,18 @@ export default function RefundDetail(props: { id: string }) {
|
|
|
151
152
|
/>
|
|
152
153
|
}
|
|
153
154
|
/>
|
|
155
|
+
{!!data.payment_details?.ethereum && (
|
|
156
|
+
<InfoRow
|
|
157
|
+
label={t('common.txGas')}
|
|
158
|
+
value={
|
|
159
|
+
<TxGas
|
|
160
|
+
details={data.payment_details as any}
|
|
161
|
+
method={data.paymentMethod}
|
|
162
|
+
currency={data.paymentCurrency}
|
|
163
|
+
/>
|
|
164
|
+
}
|
|
165
|
+
/>
|
|
166
|
+
)}
|
|
154
167
|
<InfoRow
|
|
155
168
|
label={t('common.txHash')}
|
|
156
169
|
value={<TxLink details={data.payment_details as any} method={data.paymentMethod} />}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable jsx-a11y/anchor-is-valid */
|
|
2
2
|
import { useLocaleContext } from '@arcblock/ux/lib/Locale/context';
|
|
3
3
|
import Toast from '@arcblock/ux/lib/Toast';
|
|
4
|
-
import { Status, TxLink, api, formatError, formatTime, getInvoiceStatusColor } from '@blocklet/payment-react';
|
|
4
|
+
import { Status, TxGas, TxLink, api, formatError, formatTime, getInvoiceStatusColor } from '@blocklet/payment-react';
|
|
5
5
|
import type { TInvoiceExpanded } from '@blocklet/payment-types';
|
|
6
6
|
import { ArrowBackOutlined } from '@mui/icons-material';
|
|
7
7
|
import { Alert, Box, Button, CircularProgress, Stack, Typography } from '@mui/material';
|
|
@@ -149,6 +149,18 @@ export default function CustomerInvoiceDetail() {
|
|
|
149
149
|
/>
|
|
150
150
|
}
|
|
151
151
|
/>
|
|
152
|
+
{!!data.paymentIntent.payment_details?.ethereum && (
|
|
153
|
+
<InfoRow
|
|
154
|
+
label={t('common.txGas')}
|
|
155
|
+
value={
|
|
156
|
+
<TxGas
|
|
157
|
+
details={data.paymentIntent.payment_details as any}
|
|
158
|
+
method={data.paymentMethod}
|
|
159
|
+
currency={data.paymentCurrency}
|
|
160
|
+
/>
|
|
161
|
+
}
|
|
162
|
+
/>
|
|
163
|
+
)}
|
|
152
164
|
{data.paymentIntent && data.paymentIntent.payment_details && (
|
|
153
165
|
<InfoRow
|
|
154
166
|
label={t(`common.${data.paymentIntent.payment_details?.arcblock?.type || 'transfer'}TxHash`)}
|