payment-kit 1.13.55 → 1.13.56

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.
@@ -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
@@ -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.55
17
+ version: 1.13.56
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.55",
3
+ "version": "1.13.56",
4
4
  "scripts": {
5
5
  "dev": "blocklet dev",
6
6
  "eject": "vite eject",
@@ -42,14 +42,14 @@
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.11",
45
+ "@arcblock/did-connect": "^2.8.13",
46
46
  "@arcblock/did-util": "^1.18.95",
47
47
  "@arcblock/jwt": "^1.18.95",
48
- "@arcblock/ux": "^2.8.11",
49
- "@blocklet/logger": "1.16.17",
50
- "@blocklet/sdk": "1.16.17",
51
- "@blocklet/ui-react": "^2.8.11",
52
- "@blocklet/uploader": "^0.0.35",
48
+ "@arcblock/ux": "^2.8.13",
49
+ "@blocklet/logger": "1.16.18",
50
+ "@blocklet/sdk": "1.16.18",
51
+ "@blocklet/ui-react": "^2.8.13",
52
+ "@blocklet/uploader": "^0.0.38",
53
53
  "@mui/icons-material": "^5.14.16",
54
54
  "@mui/lab": "^5.0.0-alpha.152",
55
55
  "@mui/material": "^5.14.17",
@@ -101,10 +101,10 @@
101
101
  "validator": "^13.11.0"
102
102
  },
103
103
  "devDependencies": {
104
- "@abtnode/types": "1.16.17",
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.55",
107
+ "@did-pay/types": "1.13.56",
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": "84f6c74a957d390e348cb6d96e8176c5cb22839a"
144
+ "gitHead": "8c249d53c52dd71214d8dadce7547f95f87c74f5"
145
145
  }