payment-kit 1.21.12 → 1.21.13

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.
@@ -87,6 +87,8 @@ export default {
87
87
  const client = method.getStripeClient();
88
88
  await client.subscriptions.update(subscription.payment_details.stripe.subscription_id, {
89
89
  cancel_at_period_end: false,
90
+ });
91
+ await client.subscriptions.update(subscription.payment_details.stripe.subscription_id, {
90
92
  cancel_at: null,
91
93
  });
92
94
  }
@@ -538,7 +538,8 @@ router.put('/:id/recover', authPortal, async (req, res) => {
538
538
  cancel_at: 0,
539
539
  };
540
540
 
541
- await updateStripeSubscription(doc, { ...updates, cancellation_details: null });
541
+ await updateStripeSubscription(doc, { cancel_at_period_end: false });
542
+ await updateStripeSubscription(doc, { cancel_at: null });
542
543
 
543
544
  // @ts-ignore
544
545
  await doc.update({
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.21.12
17
+ version: 1.21.13
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.21.12",
3
+ "version": "1.21.13",
4
4
  "scripts": {
5
5
  "dev": "blocklet dev --open",
6
6
  "lint": "tsc --noEmit && eslint src api/src --ext .mjs,.js,.jsx,.ts,.tsx",
@@ -56,9 +56,9 @@
56
56
  "@blocklet/error": "^0.2.5",
57
57
  "@blocklet/js-sdk": "^1.16.53-beta-20251011-054719-4ed2f6b7",
58
58
  "@blocklet/logger": "^1.16.53-beta-20251011-054719-4ed2f6b7",
59
- "@blocklet/payment-broker-client": "1.21.12",
60
- "@blocklet/payment-react": "1.21.12",
61
- "@blocklet/payment-vendor": "1.21.12",
59
+ "@blocklet/payment-broker-client": "1.21.13",
60
+ "@blocklet/payment-react": "1.21.13",
61
+ "@blocklet/payment-vendor": "1.21.13",
62
62
  "@blocklet/sdk": "^1.16.53-beta-20251011-054719-4ed2f6b7",
63
63
  "@blocklet/ui-react": "^3.1.46",
64
64
  "@blocklet/uploader": "^0.2.15",
@@ -128,7 +128,7 @@
128
128
  "devDependencies": {
129
129
  "@abtnode/types": "^1.16.53-beta-20251011-054719-4ed2f6b7",
130
130
  "@arcblock/eslint-config-ts": "^0.3.3",
131
- "@blocklet/payment-types": "1.21.12",
131
+ "@blocklet/payment-types": "1.21.13",
132
132
  "@types/cookie-parser": "^1.4.9",
133
133
  "@types/cors": "^2.8.19",
134
134
  "@types/debug": "^4.1.12",
@@ -175,5 +175,5 @@
175
175
  "parser": "typescript"
176
176
  }
177
177
  },
178
- "gitHead": "8968cff415ab6906675fae48ff7a939e9d03d2ad"
178
+ "gitHead": "b101cbdeded522328ac7c5ccd2ba44930467fe25"
179
179
  }