@molecule/api-payments-stripe 1.2.3 → 1.2.4

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/README.md CHANGED
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-08-18T09:54:27.262Z
6
+ Generated: 2026-10-01T18:21:02.894Z
7
7
  -->
8
8
 
9
9
  # @molecule/api-payments-stripe
@@ -14,6 +14,20 @@ Generated: 2026-08-18T09:54:27.262Z
14
14
 
15
15
  Stripe payment provider for molecule.dev.
16
16
 
17
+ ## Quick Start
18
+
19
+ ```typescript
20
+ // npm install @molecule/api-payments-stripe --workspace=api
21
+ // Env: STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET — server-side only (only
22
+ // the pk_… publishable key is client-side).
23
+ import { bond } from '@molecule/api-bond'
24
+ import { paymentProvider } from '@molecule/api-payments-stripe'
25
+
26
+ // api/src/bonds/payments-stripe.ts, called from setupBonds() — powers
27
+ // hosted Checkout and server-verified subscription entitlement.
28
+ bond('payments', 'stripe', paymentProvider)
29
+ ```
30
+
17
31
  ## Type
18
32
 
19
33
  `provider`
package/dist/index.d.ts CHANGED
@@ -79,6 +79,19 @@
79
79
  * SDK keeps its own default agent — a standalone app behaves exactly as before.
80
80
  * Allowlist `api.stripe.com` on the proxy.
81
81
  *
82
+ * @example
83
+ * ```typescript
84
+ * // npm install @molecule/api-payments-stripe --workspace=api
85
+ * // Env: STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET — server-side only (only
86
+ * // the pk_… publishable key is client-side).
87
+ * import { bond } from '@molecule/api-bond'
88
+ * import { paymentProvider } from '@molecule/api-payments-stripe'
89
+ *
90
+ * // api/src/bonds/payments-stripe.ts, called from setupBonds() — powers
91
+ * // hosted Checkout and server-verified subscription entitlement.
92
+ * bond('payments', 'stripe', paymentProvider)
93
+ * ```
94
+ *
82
95
  * @module
83
96
  */
84
97
  export * from './bondAdapter.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkFG;AAEH,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+FG;AAEH,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA"}
package/dist/index.js CHANGED
@@ -79,6 +79,19 @@
79
79
  * SDK keeps its own default agent — a standalone app behaves exactly as before.
80
80
  * Allowlist `api.stripe.com` on the proxy.
81
81
  *
82
+ * @example
83
+ * ```typescript
84
+ * // npm install @molecule/api-payments-stripe --workspace=api
85
+ * // Env: STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET — server-side only (only
86
+ * // the pk_… publishable key is client-side).
87
+ * import { bond } from '@molecule/api-bond'
88
+ * import { paymentProvider } from '@molecule/api-payments-stripe'
89
+ *
90
+ * // api/src/bonds/payments-stripe.ts, called from setupBonds() — powers
91
+ * // hosted Checkout and server-verified subscription entitlement.
92
+ * bond('payments', 'stripe', paymentProvider)
93
+ * ```
94
+ *
82
95
  * @module
83
96
  */
84
97
  export * from './bondAdapter.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkFG;AAEH,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+FG;AAEH,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-payments-stripe",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "Stripe payment provider for molecule.dev.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",