payment-kit 1.13.173 → 1.13.174

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.
@@ -688,8 +688,9 @@ router.put('/:id/submit', user, ensureCheckoutSessionOpen, async (req, res) => {
688
688
  formatSubscriptionProduct(lineItems.filter((x) => x.price.type === 'recurring')),
689
689
  proration_behavior: checkoutSession.subscription_data?.proration_behavior || 'none',
690
690
  payment_behavior: 'default_incomplete',
691
- days_until_due: checkoutSession.metadata?.days_until_due,
692
- days_until_cancel: checkoutSession.metadata?.days_until_cancel,
691
+ days_until_due: checkoutSession.subscription_data?.days_until_due || checkoutSession.metadata?.days_until_due,
692
+ days_until_cancel:
693
+ checkoutSession.subscription_data?.days_until_cancel || checkoutSession.metadata?.days_until_cancel,
693
694
  metadata: checkoutSession.metadata as any,
694
695
  });
695
696
 
@@ -168,6 +168,8 @@ export class CheckoutSession extends Model<InferAttributes<CheckoutSession>, Inf
168
168
  missing_payment_method: LiteralUnion<'cancel' | 'pause' | 'create_invoice', string>;
169
169
  };
170
170
  };
171
+ days_until_due?: number;
172
+ days_until_cancel?: number;
171
173
  };
172
174
 
173
175
  // 3rd party payment tx hash
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.173
17
+ version: 1.13.174
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.173",
3
+ "version": "1.13.174",
4
4
  "scripts": {
5
5
  "dev": "cross-env COMPONENT_STORE_URL=https://test.store.blocklet.dev blocklet dev --open",
6
6
  "eject": "vite eject",
@@ -50,7 +50,7 @@
50
50
  "@arcblock/jwt": "^1.18.110",
51
51
  "@arcblock/ux": "^2.9.39",
52
52
  "@blocklet/logger": "1.16.23",
53
- "@blocklet/payment-react": "1.13.173",
53
+ "@blocklet/payment-react": "1.13.174",
54
54
  "@blocklet/sdk": "1.16.23",
55
55
  "@blocklet/ui-react": "^2.9.39",
56
56
  "@blocklet/uploader": "^0.0.74",
@@ -110,7 +110,7 @@
110
110
  "devDependencies": {
111
111
  "@abtnode/types": "1.16.23",
112
112
  "@arcblock/eslint-config-ts": "^0.2.4",
113
- "@blocklet/payment-types": "1.13.173",
113
+ "@blocklet/payment-types": "1.13.174",
114
114
  "@types/cookie-parser": "^1.4.6",
115
115
  "@types/cors": "^2.8.17",
116
116
  "@types/dotenv-flow": "^3.3.3",
@@ -149,5 +149,5 @@
149
149
  "parser": "typescript"
150
150
  }
151
151
  },
152
- "gitHead": "bbf4defa95854a5168257cf85669fd6cf71d4708"
152
+ "gitHead": "6aa0d712bf8f36a3592fd564f14fd9ca05b5c7a9"
153
153
  }