@umohpyro/better-auth-nuvion 0.1.0 → 0.1.1
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 +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +26 -12
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ Accept payments with [Nuvion](https://nuvion.co) from your [Better Auth](https:/
|
|
|
9
9
|
- **Built on Better Auth.** Uses the `organization` plugin for tenancy and `@better-auth/api-key` for developer keys. Tables are created by Better Auth's schema migration.
|
|
10
10
|
- **Provider-agnostic engine.** The split engine knows nothing about Nuvion; the Nuvion integration is one provider behind a two-method interface.
|
|
11
11
|
|
|
12
|
-
> **Status: 0.1, pre-release,
|
|
12
|
+
> **Status: 0.1, pre-release, unofficial** (published on npm under the author's scope). It is verified against a simulated Nuvion API and, on the Nuvion sandbox, for hosted checkout, signed webhooks and counterparty creation; real book transfers end to end are not verified yet. See [Status and limits](#status-and-limits).
|
|
13
13
|
|
|
14
14
|
## Install
|
|
15
15
|
|
|
@@ -132,7 +132,7 @@ Verified: migration and queries on SQLite and Postgres (PGlite). Verified on the
|
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
|
|
135
|
-
Not yet implemented: authentication of payment endpoints by API key, a reconciliation job for legs stuck in `sent`, mapping refund events to payments, subscriptions, multi-currency splits, and attribution of Nuvion's own fees to legs. Amounts use JavaScript numbers (safe for fiat).
|
|
135
|
+
Not yet implemented: authentication of payment endpoints by API key, a reconciliation job for legs stuck in `sent`, mapping refund events to payments, subscriptions, multi-currency splits, and attribution of Nuvion's own fees to legs. Amounts use JavaScript numbers (safe for fiat). See [Status and limits](https://better-auth-nuvion.umoh.name.ng/docs/status) in the documentation for what is verified and what is not built yet.
|
|
136
136
|
|
|
137
137
|
The package is published under the author's npm scope (`@umohpyro`) while it is unofficial; the name will change if it is adopted.
|
|
138
138
|
|
package/dist/index.cjs
CHANGED
|
@@ -599,7 +599,7 @@ var nuvion = (opts) => {
|
|
|
599
599
|
return json(200, await svc.onTransferEvent({ eventId, reference: ev.reference, ok: false }));
|
|
600
600
|
case "refunded":
|
|
601
601
|
return json(200, { status: "refund-needs-payment-mapping" });
|
|
602
|
-
//
|
|
602
|
+
// not mapped back to a payment yet
|
|
603
603
|
default:
|
|
604
604
|
return json(200, { status: "ignored" });
|
|
605
605
|
}
|
package/dist/index.js
CHANGED
|
@@ -565,7 +565,7 @@ var nuvion = (opts) => {
|
|
|
565
565
|
return json(200, await svc.onTransferEvent({ eventId, reference: ev.reference, ok: false }));
|
|
566
566
|
case "refunded":
|
|
567
567
|
return json(200, { status: "refund-needs-payment-mapping" });
|
|
568
|
-
//
|
|
568
|
+
// not mapped back to a payment yet
|
|
569
569
|
default:
|
|
570
570
|
return json(200, { status: "ignored" });
|
|
571
571
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umohpyro/better-auth-nuvion",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Better Auth plugin for Nuvion: hosted checkout, multi-level fee splits and child merchants. Unofficial pre-release.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -13,26 +13,40 @@
|
|
|
13
13
|
"split-payments",
|
|
14
14
|
"marketplace"
|
|
15
15
|
],
|
|
16
|
-
"homepage": "https://better-auth-nuvion
|
|
17
|
-
"repository": {
|
|
18
|
-
"type": "git",
|
|
19
|
-
"url": "git+https://github.com/umohpyro/better-auth-nuvion.git"
|
|
20
|
-
},
|
|
16
|
+
"homepage": "https://better-auth-nuvion.umoh.name.ng",
|
|
21
17
|
"engines": {
|
|
22
18
|
"node": ">=20"
|
|
23
19
|
},
|
|
24
20
|
"exports": {
|
|
25
21
|
".": {
|
|
26
|
-
"import": {
|
|
27
|
-
|
|
22
|
+
"import": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"default": "./dist/index.js"
|
|
25
|
+
},
|
|
26
|
+
"require": {
|
|
27
|
+
"types": "./dist/index.d.cts",
|
|
28
|
+
"default": "./dist/index.cjs"
|
|
29
|
+
}
|
|
28
30
|
},
|
|
29
31
|
"./client": {
|
|
30
|
-
"import": {
|
|
31
|
-
|
|
32
|
+
"import": {
|
|
33
|
+
"types": "./dist/client.d.ts",
|
|
34
|
+
"default": "./dist/client.js"
|
|
35
|
+
},
|
|
36
|
+
"require": {
|
|
37
|
+
"types": "./dist/client.d.cts",
|
|
38
|
+
"default": "./dist/client.cjs"
|
|
39
|
+
}
|
|
32
40
|
},
|
|
33
41
|
"./engine": {
|
|
34
|
-
"import": {
|
|
35
|
-
|
|
42
|
+
"import": {
|
|
43
|
+
"types": "./dist/engine.d.ts",
|
|
44
|
+
"default": "./dist/engine.js"
|
|
45
|
+
},
|
|
46
|
+
"require": {
|
|
47
|
+
"types": "./dist/engine.d.cts",
|
|
48
|
+
"default": "./dist/engine.cjs"
|
|
49
|
+
}
|
|
36
50
|
}
|
|
37
51
|
},
|
|
38
52
|
"main": "./dist/index.cjs",
|