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.
- package/api/src/libs/notification/template/one-time-payment-succeeded.ts +1 -1
- package/api/src/libs/notification/template/subscription-canceled.ts +1 -1
- package/api/src/libs/notification/template/subscription-refund-succeeded.ts +1 -1
- package/api/src/libs/notification/template/subscription-renew-failed.ts +1 -1
- package/api/src/libs/notification/template/subscription-renewed.ts +1 -1
- package/api/src/libs/notification/template/subscription-succeeded.ts +1 -1
- package/api/src/libs/notification/template/subscription-trial-start.ts +1 -1
- package/api/src/libs/notification/template/subscription-trial-will-end.ts +1 -1
- package/api/src/libs/notification/template/subscription-upgraded.ts +1 -1
- package/api/src/libs/notification/template/subscription-will-canceled.ts +1 -1
- package/api/src/locales/en.ts +10 -9
- package/api/src/locales/zh.ts +1 -1
- package/blocklet.yml +1 -1
- package/package.json +23 -23
- package/src/pages/customer/index.tsx +1 -1
- package/src/pages/customer/invoice/past-due.tsx +1 -1
- package/src/pages/customer/subscription/change-payment.tsx +1 -1
|
@@ -213,7 +213,7 @@ export class OneTimePaymentSucceededEmailTemplate
|
|
|
213
213
|
data: {
|
|
214
214
|
type: 'plain',
|
|
215
215
|
color: '#9397A1',
|
|
216
|
-
text: translate('notification.common.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
221
|
+
text: translate('notification.common.paymentAmount', locale),
|
|
222
222
|
},
|
|
223
223
|
},
|
|
224
224
|
{
|
|
@@ -217,7 +217,7 @@ export class SubscriptionTrialWilEndEmailTemplate
|
|
|
217
217
|
data: {
|
|
218
218
|
type: 'plain',
|
|
219
219
|
color: '#9397A1',
|
|
220
|
-
text: translate('notification.common.
|
|
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.
|
|
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.
|
|
195
|
+
text: translate('notification.common.paymentAmount', locale),
|
|
196
196
|
},
|
|
197
197
|
},
|
|
198
198
|
{
|
package/api/src/locales/en.ts
CHANGED
|
@@ -5,7 +5,7 @@ export default flat({
|
|
|
5
5
|
common: {
|
|
6
6
|
account: 'Account',
|
|
7
7
|
product: 'Product',
|
|
8
|
-
|
|
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}
|
|
90
|
-
body: 'We are sorry to inform you that your {productName} failed to
|
|
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:
|
|
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
|
|
101
|
-
noEnoughToken: 'Your account token balance is {balance}, insufficient for {price}, please
|
|
102
|
-
noSupported: 'It is not supported to
|
|
103
|
-
txSendFailed: 'Failed to send
|
|
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
|
|
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
|
|
package/api/src/locales/zh.ts
CHANGED
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.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.
|
|
46
|
+
"@arcblock/did": "^1.18.117",
|
|
47
47
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
48
|
-
"@arcblock/did-connect": "^2.9.
|
|
49
|
-
"@arcblock/did-util": "^1.18.
|
|
50
|
-
"@arcblock/jwt": "^1.18.
|
|
51
|
-
"@arcblock/ux": "^2.9.
|
|
52
|
-
"@arcblock/validator": "^1.18.
|
|
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.
|
|
54
|
+
"@blocklet/payment-react": "1.13.255",
|
|
55
55
|
"@blocklet/sdk": "1.16.26",
|
|
56
|
-
"@blocklet/ui-react": "^2.9.
|
|
56
|
+
"@blocklet/ui-react": "^2.9.79",
|
|
57
57
|
"@blocklet/uploader": "^0.1.6",
|
|
58
|
-
"@mui/icons-material": "^5.15.
|
|
58
|
+
"@mui/icons-material": "^5.15.17",
|
|
59
59
|
"@mui/lab": "^5.0.0-alpha.170",
|
|
60
|
-
"@mui/material": "^5.15.
|
|
61
|
-
"@mui/styles": "^5.15.
|
|
60
|
+
"@mui/material": "^5.15.17",
|
|
61
|
+
"@mui/styles": "^5.15.17",
|
|
62
62
|
"@mui/system": "^5.15.15",
|
|
63
|
-
"@ocap/asset": "^1.18.
|
|
64
|
-
"@ocap/client": "^1.18.
|
|
65
|
-
"@ocap/mcrypto": "^1.18.
|
|
66
|
-
"@ocap/util": "^1.18.
|
|
67
|
-
"@ocap/wallet": "^1.18.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
125
|
-
"@types/react": "^18.3.
|
|
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": "
|
|
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(
|
|
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(
|
|
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(
|
|
150
|
+
prefix: joinURL(getPrefix(), '/api/did'),
|
|
151
151
|
saveConnect: false,
|
|
152
152
|
extraParams: { subscriptionId: subscription.id },
|
|
153
153
|
onSuccess: async () => {
|