payment-kit 1.13.253 → 1.13.255

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.
@@ -213,7 +213,7 @@ export class OneTimePaymentSucceededEmailTemplate
213
213
  data: {
214
214
  type: 'plain',
215
215
  color: '#9397A1',
216
- text: translate('notification.common.paymentInfo', locale),
216
+ text: translate('notification.common.paymentAmount', locale),
217
217
  },
218
218
  },
219
219
  {
@@ -187,7 +187,7 @@ export class SubscriptionCanceledEmailTemplate implements BaseEmailTemplate<Subs
187
187
  data: {
188
188
  type: 'plain',
189
189
  color: '#9397A1',
190
- text: translate('notification.common.paymentInfo', locale),
190
+ text: translate('notification.common.paymentAmount', locale),
191
191
  },
192
192
  },
193
193
  {
@@ -214,7 +214,7 @@ export class SubscriptionRefundSucceededEmailTemplate
214
214
  data: {
215
215
  type: 'plain',
216
216
  color: '#9397A1',
217
- text: translate('notification.common.paymentInfo', locale),
217
+ text: translate('notification.common.paymentAmount', locale),
218
218
  },
219
219
  },
220
220
  {
@@ -230,7 +230,7 @@ export class SubscriptionRenewFailedEmailTemplate
230
230
  data: {
231
231
  type: 'plain',
232
232
  color: '#9397A1',
233
- text: translate('notification.common.paymentInfo', locale),
233
+ text: translate('notification.common.paymentAmount', locale),
234
234
  },
235
235
  },
236
236
  {
@@ -218,7 +218,7 @@ export class SubscriptionRenewedEmailTemplate implements BaseEmailTemplate<Subsc
218
218
  data: {
219
219
  type: 'plain',
220
220
  color: '#9397A1',
221
- text: translate('notification.common.paymentInfo', locale),
221
+ text: translate('notification.common.paymentAmount', locale),
222
222
  },
223
223
  },
224
224
  {
@@ -245,7 +245,7 @@ export class SubscriptionSucceededEmailTemplate
245
245
  data: {
246
246
  type: 'plain',
247
247
  color: '#9397A1',
248
- text: translate('notification.common.paymentInfo', locale),
248
+ text: translate('notification.common.paymentAmount', locale),
249
249
  },
250
250
  },
251
251
  {
@@ -216,7 +216,7 @@ export class SubscriptionTrialStartEmailTemplate
216
216
  data: {
217
217
  type: 'plain',
218
218
  color: '#9397A1',
219
- text: translate('notification.common.paymentInfo', locale),
219
+ text: translate('notification.common.paymentAmount', locale),
220
220
  },
221
221
  },
222
222
  {
@@ -217,7 +217,7 @@ export class SubscriptionTrialWilEndEmailTemplate
217
217
  data: {
218
218
  type: 'plain',
219
219
  color: '#9397A1',
220
- text: translate('notification.common.paymentInfo', locale),
220
+ text: translate('notification.common.paymentAmount', locale),
221
221
  },
222
222
  },
223
223
  {
@@ -214,7 +214,7 @@ export class SubscriptionUpgradedEmailTemplate implements BaseEmailTemplate<Subs
214
214
  data: {
215
215
  type: 'plain',
216
216
  color: '#9397A1',
217
- text: translate('notification.common.paymentInfo', locale),
217
+ text: translate('notification.common.paymentAmount', locale),
218
218
  },
219
219
  },
220
220
  {
@@ -192,7 +192,7 @@ export class SubscriptionWillCanceledEmailTemplate
192
192
  data: {
193
193
  type: 'plain',
194
194
  color: '#9397A1',
195
- text: translate('notification.subscriptWillCanceled.renewAmount', locale),
195
+ text: translate('notification.common.paymentAmount', locale),
196
196
  },
197
197
  },
198
198
  {
@@ -5,7 +5,7 @@ export default flat({
5
5
  common: {
6
6
  account: 'Account',
7
7
  product: 'Product',
8
- paymentInfo: 'Paid',
8
+ paymentAmount: 'Payment amount',
9
9
  refundAmount: 'Refund amount',
10
10
  refundPeriod: 'Refund period',
11
11
  validityPeriod: 'Service period',
@@ -86,8 +86,8 @@ export default flat({
86
86
  },
87
87
 
88
88
  subscriptionRenewFailed: {
89
- title: '{productName} charge failed',
90
- body: 'We are sorry to inform you that your {productName} failed to be charged on {at}. The reason for the failure is {reason}. If you have any questions, please contact us in time. Thank you!',
89
+ title: '{productName} automatic payment failed',
90
+ body: 'We are sorry to inform you that your {productName} failed to go through the automatic payment on {at}. The reason for the failure is {reason}. If you have any questions, please contact us in time. Thank you!',
91
91
  reason: {
92
92
  noDidWallet: 'You have not bound DID Wallet, please bind DID Wallet to ensure sufficient balance',
93
93
  noDelegation: 'Your DID Wallet has not been authorized, please update authorization',
@@ -95,12 +95,13 @@ export default flat({
95
95
  'Your DID Wallet has not granted transfer permission to the application, please update authorization',
96
96
  noTokenPermission:
97
97
  'Your DID Wallet has not granted token transfer permission to the application, please update authorization',
98
- noTransferTo: 'Your DID Wallet has not granted the application charge permission, please update authorization',
98
+ noTransferTo:
99
+ 'Your DID Wallet has not granted the application automatic payment permission, please update authorization',
99
100
  noEnoughAllowance: 'The deduction amount exceeds the single transfer limit, please update authorization',
100
- noToken: 'Your account has no tokens, please recharge tokens',
101
- noEnoughToken: 'Your account token balance is {balance}, insufficient for {price}, please recharge tokens',
102
- noSupported: 'It is not supported to charge with tokens, please check your package',
103
- txSendFailed: 'Failed to send charge transaction',
101
+ noToken: 'Your account has no tokens, please add funds',
102
+ noEnoughToken: 'Your account token balance is {balance}, insufficient for {price}, please add funds',
103
+ noSupported: 'It is not supported to automatically pay with tokens, please check your package',
104
+ txSendFailed: 'Failed to send automatic payment transaction',
104
105
  },
105
106
  },
106
107
 
@@ -117,7 +118,7 @@ export default flat({
117
118
 
118
119
  subscriptWillCanceled: {
119
120
  title: '{productName} subscription is about to be automatically cancelled ',
120
- body: 'Your subscription {productName} will be automatically unsubscribed by the system after {at} (after {willCancelDuration}) due to a long period of failure to automatically complete the deduction. Please handle the problem of charge deduction manually in time, so as not to affect the use. If you have any questions, please feel free to contact us. ',
121
+ body: 'Your subscription {productName} will be automatically unsubscribed by the system after {at} (after {willCancelDuration}) due to a long period of failure to automatically complete the automatic payment. Please handle the problem of automatic payment manually in time, so as not to affect the use. If you have any questions, please feel free to contact us.',
121
122
  renewAmount: 'deduction amount ',
122
123
  },
123
124
 
@@ -5,7 +5,7 @@ export default flat({
5
5
  common: {
6
6
  account: '账号',
7
7
  product: '商品',
8
- paymentInfo: '已支付',
8
+ paymentAmount: '扣费金额',
9
9
  refundAmount: '退款金额',
10
10
  refundPeriod: '退款周期',
11
11
  validityPeriod: '服务周期',
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.253
17
+ version: 1.13.255
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.253",
3
+ "version": "1.13.255",
4
4
  "scripts": {
5
5
  "dev": "blocklet dev --open",
6
6
  "eject": "vite eject",
@@ -43,28 +43,28 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@abtnode/cron": "1.16.26",
46
- "@arcblock/did": "^1.18.116",
46
+ "@arcblock/did": "^1.18.117",
47
47
  "@arcblock/did-auth-storage-nedb": "^1.7.1",
48
- "@arcblock/did-connect": "^2.9.77",
49
- "@arcblock/did-util": "^1.18.116",
50
- "@arcblock/jwt": "^1.18.116",
51
- "@arcblock/ux": "^2.9.77",
52
- "@arcblock/validator": "^1.18.116",
48
+ "@arcblock/did-connect": "^2.9.79",
49
+ "@arcblock/did-util": "^1.18.117",
50
+ "@arcblock/jwt": "^1.18.117",
51
+ "@arcblock/ux": "^2.9.79",
52
+ "@arcblock/validator": "^1.18.117",
53
53
  "@blocklet/logger": "1.16.26",
54
- "@blocklet/payment-react": "1.13.253",
54
+ "@blocklet/payment-react": "1.13.255",
55
55
  "@blocklet/sdk": "1.16.26",
56
- "@blocklet/ui-react": "^2.9.77",
56
+ "@blocklet/ui-react": "^2.9.79",
57
57
  "@blocklet/uploader": "^0.1.6",
58
- "@mui/icons-material": "^5.15.16",
58
+ "@mui/icons-material": "^5.15.17",
59
59
  "@mui/lab": "^5.0.0-alpha.170",
60
- "@mui/material": "^5.15.16",
61
- "@mui/styles": "^5.15.16",
60
+ "@mui/material": "^5.15.17",
61
+ "@mui/styles": "^5.15.17",
62
62
  "@mui/system": "^5.15.15",
63
- "@ocap/asset": "^1.18.116",
64
- "@ocap/client": "^1.18.116",
65
- "@ocap/mcrypto": "^1.18.116",
66
- "@ocap/util": "^1.18.116",
67
- "@ocap/wallet": "^1.18.116",
63
+ "@ocap/asset": "^1.18.117",
64
+ "@ocap/client": "^1.18.117",
65
+ "@ocap/mcrypto": "^1.18.117",
66
+ "@ocap/util": "^1.18.117",
67
+ "@ocap/wallet": "^1.18.117",
68
68
  "@react-pdf/renderer": "^3.4.4",
69
69
  "@stripe/react-stripe-js": "^2.7.1",
70
70
  "@stripe/stripe-js": "^2.4.0",
@@ -100,7 +100,7 @@
100
100
  "react-error-boundary": "^4.0.13",
101
101
  "react-hook-form": "^7.51.4",
102
102
  "react-international-phone": "^3.1.2",
103
- "react-router-dom": "^6.23.0",
103
+ "react-router-dom": "^6.23.1",
104
104
  "recharts": "^2.12.7",
105
105
  "rimraf": "^3.0.2",
106
106
  "sequelize": "^6.37.3",
@@ -111,18 +111,18 @@
111
111
  "ufo": "^1.5.3",
112
112
  "umzug": "^3.8.0",
113
113
  "use-bus": "^2.5.2",
114
- "validator": "^13.11.0"
114
+ "validator": "^13.12.0"
115
115
  },
116
116
  "devDependencies": {
117
117
  "@abtnode/types": "1.16.26",
118
118
  "@arcblock/eslint-config-ts": "^0.3.0",
119
- "@blocklet/payment-types": "1.13.253",
119
+ "@blocklet/payment-types": "1.13.255",
120
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.32",
125
- "@types/react": "^18.3.1",
124
+ "@types/node": "^18.19.33",
125
+ "@types/react": "^18.3.2",
126
126
  "@types/react-dom": "^18.3.0",
127
127
  "@vitejs/plugin-react": "^4.2.1",
128
128
  "bumpp": "^8.2.1",
@@ -155,5 +155,5 @@
155
155
  "parser": "typescript"
156
156
  }
157
157
  },
158
- "gitHead": "4ad023bae87cc6b0c7480e701e5ba51b7b66ca19"
158
+ "gitHead": "79416ada68496df6d233a59244a0cec245414813"
159
159
  }
@@ -136,7 +136,7 @@ export default function CustomerHome() {
136
136
  color="error"
137
137
  component="a"
138
138
  size="small"
139
- href={joinURL(window.location.origin, getPrefix(), '/customer/invoice/past-due')}
139
+ href={joinURL(getPrefix(), '/customer/invoice/past-due')}
140
140
  target="_blank"
141
141
  rel="noreferrer"
142
142
  style={{ textDecoration: 'none' }}>
@@ -56,7 +56,7 @@ export default function CustomerInvoicePastDue() {
56
56
  containerEl: undefined as unknown as Element,
57
57
  saveConnect: false,
58
58
  action: 'collect-batch',
59
- prefix: joinURL(window.location.origin, getPrefix(), '/api/did'),
59
+ prefix: joinURL(getPrefix(), '/api/did'),
60
60
  extraParams: { subscriptionId, currencyId },
61
61
  onSuccess: () => {
62
62
  connect.close();
@@ -147,7 +147,7 @@ function CustomerSubscriptionChangePayment({ subscription, customer, onComplete
147
147
  connect.open({
148
148
  containerEl: undefined as unknown as Element,
149
149
  action: 'change-payment',
150
- prefix: joinURL(window.location.origin, getPrefix(), '/api/did'),
150
+ prefix: joinURL(getPrefix(), '/api/did'),
151
151
  saveConnect: false,
152
152
  extraParams: { subscriptionId: subscription.id },
153
153
  onSuccess: async () => {