@molecule/api-payments-stripe 1.2.2 → 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 +15 -1
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
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-
|
|
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';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
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
|
|
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
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "Stripe payment provider for molecule.dev.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
],
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@molecule/api-proxy-agent": "1.1.
|
|
30
|
+
"@molecule/api-proxy-agent": "1.1.1",
|
|
31
31
|
"stripe": "22.4.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "26.1.2",
|
|
35
35
|
"typescript": "6.0.3",
|
|
36
|
-
"vitest": "4.1.
|
|
36
|
+
"vitest": "4.1.11"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@molecule/api-bond": "^1.0.1",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"url": "https://github.com/molecule-dev/molecule.git",
|
|
56
56
|
"directory": "packages/api/bonds/payments/stripe"
|
|
57
57
|
},
|
|
58
|
-
"homepage": "https://
|
|
58
|
+
"homepage": "https://www.molecule.dev/packages/api-payments-stripe",
|
|
59
59
|
"bugs": "https://github.com/molecule-dev/molecule/issues",
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|