payment-kit 1.13.55 → 1.13.57
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/jobs/payment.ts +2 -2
- package/blocklet.yml +1 -1
- package/package.json +19 -19
package/api/src/jobs/payment.ts
CHANGED
|
@@ -120,6 +120,8 @@ export const handlePayment = async (job: PaymentJob) => {
|
|
|
120
120
|
// try payment capture and reschedule on error
|
|
121
121
|
logger.info(`PaymentIntent capture attempt: ${paymentIntent.id}`);
|
|
122
122
|
try {
|
|
123
|
+
await paymentIntent.update({ status: 'processing', last_payment_error: null });
|
|
124
|
+
|
|
123
125
|
const client = paymentMethod.getOcapClient();
|
|
124
126
|
const payer = paymentSettings?.payment_method_options.arcblock?.payer;
|
|
125
127
|
|
|
@@ -137,7 +139,6 @@ export const handlePayment = async (job: PaymentJob) => {
|
|
|
137
139
|
}
|
|
138
140
|
|
|
139
141
|
// do the capture
|
|
140
|
-
await paymentIntent.update({ status: 'processing' });
|
|
141
142
|
const signed = await client.signTransferV2Tx({
|
|
142
143
|
tx: {
|
|
143
144
|
itx: {
|
|
@@ -168,7 +169,6 @@ export const handlePayment = async (job: PaymentJob) => {
|
|
|
168
169
|
await paymentIntent.update({
|
|
169
170
|
status: 'succeeded',
|
|
170
171
|
amount_received: paymentIntent.amount,
|
|
171
|
-
last_payment_error: null,
|
|
172
172
|
payment_details: {
|
|
173
173
|
arcblock: {
|
|
174
174
|
tx_hash: txHash,
|
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.57",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "blocklet dev",
|
|
6
6
|
"eject": "vite eject",
|
|
@@ -42,25 +42,25 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@arcblock/did": "^1.18.95",
|
|
44
44
|
"@arcblock/did-auth-storage-nedb": "^1.7.1",
|
|
45
|
-
"@arcblock/did-connect": "^2.8.
|
|
45
|
+
"@arcblock/did-connect": "^2.8.14",
|
|
46
46
|
"@arcblock/did-util": "^1.18.95",
|
|
47
47
|
"@arcblock/jwt": "^1.18.95",
|
|
48
|
-
"@arcblock/ux": "^2.8.
|
|
49
|
-
"@blocklet/logger": "1.16.
|
|
50
|
-
"@blocklet/sdk": "1.16.
|
|
51
|
-
"@blocklet/ui-react": "^2.8.
|
|
52
|
-
"@blocklet/uploader": "^0.0.
|
|
53
|
-
"@mui/icons-material": "^5.14.
|
|
54
|
-
"@mui/lab": "^5.0.0-alpha.
|
|
55
|
-
"@mui/material": "^5.14.
|
|
56
|
-
"@mui/styles": "^5.14.
|
|
57
|
-
"@mui/system": "^5.14.
|
|
48
|
+
"@arcblock/ux": "^2.8.14",
|
|
49
|
+
"@blocklet/logger": "1.16.18",
|
|
50
|
+
"@blocklet/sdk": "1.16.18",
|
|
51
|
+
"@blocklet/ui-react": "^2.8.14",
|
|
52
|
+
"@blocklet/uploader": "^0.0.38",
|
|
53
|
+
"@mui/icons-material": "^5.14.18",
|
|
54
|
+
"@mui/lab": "^5.0.0-alpha.153",
|
|
55
|
+
"@mui/material": "^5.14.18",
|
|
56
|
+
"@mui/styles": "^5.14.18",
|
|
57
|
+
"@mui/system": "^5.14.18",
|
|
58
58
|
"@ocap/asset": "^1.18.95",
|
|
59
59
|
"@ocap/client": "^1.18.95",
|
|
60
60
|
"@ocap/mcrypto": "^1.18.95",
|
|
61
61
|
"@ocap/util": "^1.18.95",
|
|
62
62
|
"@ocap/wallet": "^1.18.95",
|
|
63
|
-
"@stripe/react-stripe-js": "^2.3.
|
|
63
|
+
"@stripe/react-stripe-js": "^2.3.2",
|
|
64
64
|
"@stripe/stripe-js": "^2.1.11",
|
|
65
65
|
"ahooks": "^3.7.8",
|
|
66
66
|
"axios": "^0.27.2",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"google-libphonenumber": "^3.2.33",
|
|
79
79
|
"iframe-resizer-react": "^1.1.0",
|
|
80
80
|
"joi": "^17.11.0",
|
|
81
|
-
"json-stable-stringify": "^1.0
|
|
81
|
+
"json-stable-stringify": "^1.1.0",
|
|
82
82
|
"lodash": "^4.17.21",
|
|
83
83
|
"morgan": "^1.10.0",
|
|
84
84
|
"nanoid": "3",
|
|
@@ -91,20 +91,20 @@
|
|
|
91
91
|
"react-international-phone": "^3.1.2",
|
|
92
92
|
"react-router-dom": "^6.18.0",
|
|
93
93
|
"rimraf": "^3.0.2",
|
|
94
|
-
"sequelize": "^6.
|
|
94
|
+
"sequelize": "^6.35.0",
|
|
95
95
|
"sqlite3": "^5.1.6",
|
|
96
96
|
"stripe": "^13.11.0",
|
|
97
97
|
"typewriter-effect": "^2.21.0",
|
|
98
|
-
"ufo": "^1.3.
|
|
98
|
+
"ufo": "^1.3.2",
|
|
99
99
|
"umzug": "^3.4.0",
|
|
100
100
|
"use-bus": "^2.5.2",
|
|
101
101
|
"validator": "^13.11.0"
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
|
-
"@abtnode/types": "1.16.
|
|
104
|
+
"@abtnode/types": "1.16.18",
|
|
105
105
|
"@arcblock/eslint-config": "^0.2.4",
|
|
106
106
|
"@arcblock/eslint-config-ts": "^0.2.4",
|
|
107
|
-
"@did-pay/types": "1.13.
|
|
107
|
+
"@did-pay/types": "1.13.57",
|
|
108
108
|
"@types/cookie-parser": "^1.4.6",
|
|
109
109
|
"@types/cors": "^2.8.16",
|
|
110
110
|
"@types/dotenv-flow": "^3.3.3",
|
|
@@ -141,5 +141,5 @@
|
|
|
141
141
|
"parser": "typescript"
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
|
-
"gitHead": "
|
|
144
|
+
"gitHead": "4973254efcdb6307d4de61c53c5de8581dcf308d"
|
|
145
145
|
}
|