@genesis-tech/genesispay-seller 0.8.0
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/CHANGELOG.md +330 -0
- package/LICENSE +21 -0
- package/README.md +429 -0
- package/dist/client.d.ts +275 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +541 -0
- package/dist/client.js.map +1 -0
- package/dist/customers.d.ts +41 -0
- package/dist/customers.d.ts.map +1 -0
- package/dist/customers.js +76 -0
- package/dist/customers.js.map +1 -0
- package/dist/errors.d.ts +63 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +162 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/invoices.d.ts +80 -0
- package/dist/invoices.d.ts.map +1 -0
- package/dist/invoices.js +133 -0
- package/dist/invoices.js.map +1 -0
- package/dist/mandate-gate.d.ts +49 -0
- package/dist/mandate-gate.d.ts.map +1 -0
- package/dist/mandate-gate.js +109 -0
- package/dist/mandate-gate.js.map +1 -0
- package/dist/mandates.d.ts +172 -0
- package/dist/mandates.d.ts.map +1 -0
- package/dist/mandates.js +213 -0
- package/dist/mandates.js.map +1 -0
- package/dist/networks.d.ts +10 -0
- package/dist/networks.d.ts.map +1 -0
- package/dist/networks.js +22 -0
- package/dist/networks.js.map +1 -0
- package/dist/payment-gate.d.ts +67 -0
- package/dist/payment-gate.d.ts.map +1 -0
- package/dist/payment-gate.js +106 -0
- package/dist/payment-gate.js.map +1 -0
- package/dist/peerpay-settlement.d.ts +27 -0
- package/dist/peerpay-settlement.d.ts.map +1 -0
- package/dist/peerpay-settlement.js +100 -0
- package/dist/peerpay-settlement.js.map +1 -0
- package/dist/plans.d.ts +68 -0
- package/dist/plans.d.ts.map +1 -0
- package/dist/plans.js +127 -0
- package/dist/plans.js.map +1 -0
- package/dist/resource.d.ts +47 -0
- package/dist/resource.d.ts.map +1 -0
- package/dist/resource.js +71 -0
- package/dist/resource.js.map +1 -0
- package/dist/usdc-amount.d.ts +7 -0
- package/dist/usdc-amount.d.ts.map +1 -0
- package/dist/usdc-amount.js +21 -0
- package/dist/usdc-amount.js.map +1 -0
- package/dist/webhooks.d.ts +277 -0
- package/dist/webhooks.d.ts.map +1 -0
- package/dist/webhooks.js +223 -0
- package/dist/webhooks.js.map +1 -0
- package/package.json +58 -0
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import type { MandatesResource } from "./mandates.js";
|
|
2
|
+
import type { CustomersResource } from "./customers.js";
|
|
3
|
+
import type { InvoicesResource } from "./invoices.js";
|
|
4
|
+
import type { VerifySettlement } from "./payment-gate.js";
|
|
5
|
+
import type { PlansResource } from "./plans.js";
|
|
6
|
+
import type { PaymentGateNetwork } from "./networks.js";
|
|
7
|
+
import type { ConstructEventOptions, PeerPayEvent } from "./webhooks.js";
|
|
8
|
+
/**
|
|
9
|
+
* The legacy `PeerPay` client — a Stripe-like entry point that owns the seller key and
|
|
10
|
+
* resolves everything else (payout wallet, network, base URL) from it. The key
|
|
11
|
+
* prefix decides the mode: `pp_sk_test_…` / legacy `pp_sk_…` → test,
|
|
12
|
+
* `pp_sk_live_…` → live. See docs/archive/SELLER_SDK_DX_SPEC.md.
|
|
13
|
+
*/
|
|
14
|
+
export type PeerPayKeyMode = "test" | "live";
|
|
15
|
+
export type PeerPayClientOptions = {
|
|
16
|
+
/** pp_sk_test_… | pp_sk_live_… | legacy pp_sk_… — the only required field. */
|
|
17
|
+
apiKey: string;
|
|
18
|
+
/** Overrides the mode→URL default (self-host / staging). Must be https (http only for localhost). */
|
|
19
|
+
baseUrl?: string;
|
|
20
|
+
/** Injectable fetch for tests. Defaults to the global fetch. */
|
|
21
|
+
fetchFn?: typeof fetch;
|
|
22
|
+
/** Seller-config cache TTL. Default 5 min. */
|
|
23
|
+
configTtlMs?: number;
|
|
24
|
+
/** Optional local pin on the resolved payout wallet; recommended for live keys. */
|
|
25
|
+
expectedPayTo?: string;
|
|
26
|
+
};
|
|
27
|
+
export type SellerConfig = {
|
|
28
|
+
id: string;
|
|
29
|
+
mode: PeerPayKeyMode;
|
|
30
|
+
payTo: string | null;
|
|
31
|
+
hasPayTo: boolean;
|
|
32
|
+
network: {
|
|
33
|
+
networkName: PaymentGateNetwork;
|
|
34
|
+
chainId: number;
|
|
35
|
+
usdcAddress: string;
|
|
36
|
+
asset: "USDC";
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* The amount half of {@link CheckoutCreateInput}, as a union so that **one of
|
|
41
|
+
* the two names is always required at compile time** — `amountUsdc` was a
|
|
42
|
+
* required property before 0.6.0, and losing that to two optional fields would
|
|
43
|
+
* have turned a type error into a runtime one.
|
|
44
|
+
*/
|
|
45
|
+
export type CheckoutAmountInput = {
|
|
46
|
+
/**
|
|
47
|
+
* Decimal amount **in `asset`** — `"5.00"`, at most 6 decimals, always a
|
|
48
|
+
* string (a float would lose minor units). Hosted checkout links settle
|
|
49
|
+
* in USDC during the beta, so the amount is in dollars.
|
|
50
|
+
*
|
|
51
|
+
* Passing the deprecated `amountUsdc` alongside it is allowed only when
|
|
52
|
+
* both are the same amount; two different values throw
|
|
53
|
+
* `PeerPayValidationError` before the request.
|
|
54
|
+
*/
|
|
55
|
+
amount: string;
|
|
56
|
+
/** @deprecated Use `amount` alone. */
|
|
57
|
+
amountUsdc?: string;
|
|
58
|
+
} | {
|
|
59
|
+
amount?: string;
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated Renamed to `amount` in 0.6.0. The name claimed a currency
|
|
62
|
+
* the value did not always have. Still accepted, and still sent on the wire for backends older than
|
|
63
|
+
* 0.6.0 — but new code should set `amount`.
|
|
64
|
+
*/
|
|
65
|
+
amountUsdc: string;
|
|
66
|
+
};
|
|
67
|
+
export type CheckoutCreateInput = CheckoutAmountInput & {
|
|
68
|
+
title: string;
|
|
69
|
+
description?: string;
|
|
70
|
+
linkType?: "single" | "reusable";
|
|
71
|
+
destinationWallet?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Hosted checkout links settle in USDC during the beta. Omit this field in
|
|
74
|
+
* new integrations; it is kept only to make the invariant explicit in the
|
|
75
|
+
* request type.
|
|
76
|
+
*/
|
|
77
|
+
asset?: "USDC";
|
|
78
|
+
/** Free-form correlation data; echoed back in webhooks and `checkout.retrieve()`. */
|
|
79
|
+
metadata?: Record<string, string>;
|
|
80
|
+
/** The merchant's own reference (Stripe: client_reference_id). */
|
|
81
|
+
clientReferenceId?: string;
|
|
82
|
+
/** Where the payer returns after a successful payment (https). */
|
|
83
|
+
returnUrl?: string;
|
|
84
|
+
/** Where the payer returns when they cancel (https). */
|
|
85
|
+
cancelUrl?: string;
|
|
86
|
+
};
|
|
87
|
+
export type CheckoutLink = {
|
|
88
|
+
publicId: string;
|
|
89
|
+
payUrl: string;
|
|
90
|
+
/** Decimal amount in `asset`, as the server normalized it (e.g. `"5.00"`). */
|
|
91
|
+
amount: string;
|
|
92
|
+
/** @deprecated Same value as {@link CheckoutLink.amount}; see the input field. */
|
|
93
|
+
amountUsdc: string;
|
|
94
|
+
/**
|
|
95
|
+
* The currency `amount` is denominated in. Echoed back on create so a EURC
|
|
96
|
+
* link can be confirmed as one without a second round-trip.
|
|
97
|
+
*/
|
|
98
|
+
asset: "USDC" | "EURC";
|
|
99
|
+
title: string;
|
|
100
|
+
metadata: Record<string, string> | null;
|
|
101
|
+
clientReferenceId: string | null;
|
|
102
|
+
returnUrl: string | null;
|
|
103
|
+
cancelUrl: string | null;
|
|
104
|
+
};
|
|
105
|
+
/** Lifecycle of a single payment attempt on a link, as the server reports it. */
|
|
106
|
+
export type CheckoutAttemptStatus = "pending" | "submitted" | "confirmed" | "failed" | "expired";
|
|
107
|
+
/**
|
|
108
|
+
* One payment attempt against a checkout link — the receipt data (`txHash`,
|
|
109
|
+
* `payerWallet`) that `paid === true` alone cannot give you.
|
|
110
|
+
*
|
|
111
|
+
* A `reusable` link accumulates attempts; the newest comes first. `txHash` is
|
|
112
|
+
* null while an attempt is still pending, and stays null for attempts created
|
|
113
|
+
* by the test-mode `simulate-payment` endpoint (no transaction exists).
|
|
114
|
+
*/
|
|
115
|
+
export type CheckoutAttempt = {
|
|
116
|
+
id: string;
|
|
117
|
+
status: CheckoutAttemptStatus;
|
|
118
|
+
txHash: string | null;
|
|
119
|
+
payerWallet: string | null;
|
|
120
|
+
createdAt: string;
|
|
121
|
+
confirmedAt: string | null;
|
|
122
|
+
failureReason: string | null;
|
|
123
|
+
/**
|
|
124
|
+
* True when no funds moved — an attempt created by
|
|
125
|
+
* `checkout.simulatePayment`. Note that such an attempt also has
|
|
126
|
+
* `txHash: null` — but so does a pending real one, which is why this flag
|
|
127
|
+
* exists rather than inferring it.
|
|
128
|
+
*
|
|
129
|
+
* `false` for a real settlement, including on testnet and in provider
|
|
130
|
+
* sandboxes: this is the fabricated-payment axis, not the environment axis.
|
|
131
|
+
*
|
|
132
|
+
* Defaults to `false` against a backend that does not report it.
|
|
133
|
+
*/
|
|
134
|
+
simulated: boolean;
|
|
135
|
+
};
|
|
136
|
+
export type CheckoutSession = CheckoutLink & {
|
|
137
|
+
description: string | null;
|
|
138
|
+
linkType: "single" | "reusable";
|
|
139
|
+
status: "active" | "paid" | "archived";
|
|
140
|
+
destinationWallet: string;
|
|
141
|
+
chainId: number;
|
|
142
|
+
/**
|
|
143
|
+
* true as soon as at least one payment is confirmed — the value to poll on.
|
|
144
|
+
*
|
|
145
|
+
* For a `reusable` link this answers "has this link ever been paid", not "has
|
|
146
|
+
* this buyer paid": `confirmedPaymentCount` only grows, so `paid` stays true
|
|
147
|
+
* from the first payment onward. Per-buyer fulfilment on a reusable link needs
|
|
148
|
+
* a webhook, or `confirmedPaymentCount` tracked as a delta.
|
|
149
|
+
*/
|
|
150
|
+
paid: boolean;
|
|
151
|
+
confirmedPaymentCount: number;
|
|
152
|
+
createdAt: string;
|
|
153
|
+
/**
|
|
154
|
+
* Payment attempts for this link, newest first — empty when the server does
|
|
155
|
+
* not report them (older backend) or when nobody has tried to pay yet.
|
|
156
|
+
*/
|
|
157
|
+
attempts: CheckoutAttempt[];
|
|
158
|
+
};
|
|
159
|
+
export type SimulatePaymentOptions = {
|
|
160
|
+
/**
|
|
161
|
+
* Payer address recorded on the simulated attempt. Defaults to a deliberately
|
|
162
|
+
* synthetic server-side placeholder, so nobody mistakes a simulated payment
|
|
163
|
+
* for a real payer in a dashboard or an export.
|
|
164
|
+
*/
|
|
165
|
+
payerWallet?: string;
|
|
166
|
+
};
|
|
167
|
+
export type GateConfig = {
|
|
168
|
+
amountUsdc: string;
|
|
169
|
+
description?: string;
|
|
170
|
+
resource?: string;
|
|
171
|
+
mimeType?: string;
|
|
172
|
+
maxTimeoutSeconds?: number;
|
|
173
|
+
};
|
|
174
|
+
type GateHandler<Args extends unknown[]> = (request: Request, ...args: Args) => Response | Promise<Response>;
|
|
175
|
+
export interface ResolvingGate {
|
|
176
|
+
wrap<Args extends unknown[]>(handler: GateHandler<Args>, opts?: {
|
|
177
|
+
verifySettlement?: VerifySettlement;
|
|
178
|
+
}): (request: Request, ...args: Args) => Promise<Response>;
|
|
179
|
+
/** Warm the seller-config cache (and surface auth/wallet errors) before traffic. */
|
|
180
|
+
prime(): Promise<void>;
|
|
181
|
+
}
|
|
182
|
+
export { PeerPayConfigError, PeerPayNetworkSafetyError, PeerPayNotFoundError, PeerPayRateLimitError, PeerPayValidationError, type PeerPayValidationIssue, } from "./errors.js";
|
|
183
|
+
export declare class PeerPay {
|
|
184
|
+
readonly mode: PeerPayKeyMode;
|
|
185
|
+
readonly baseUrl: string;
|
|
186
|
+
readonly checkout: {
|
|
187
|
+
create(input: CheckoutCreateInput): Promise<CheckoutLink>;
|
|
188
|
+
retrieve(publicId: string): Promise<CheckoutSession>;
|
|
189
|
+
/**
|
|
190
|
+
* Test mode only: records a confirmed payment on one of your links without
|
|
191
|
+
* any money moving, and fires the real `payment.confirmed` (plus
|
|
192
|
+
* `link.paid` for a single-use link) webhooks — the point being that you can
|
|
193
|
+
* exercise your webhook handler end to end.
|
|
194
|
+
*
|
|
195
|
+
* The resulting attempt carries `simulated: true` and `txHash: null`; there
|
|
196
|
+
* is no transaction, and a made-up hash would be a lie in a field other
|
|
197
|
+
* systems point a block explorer at.
|
|
198
|
+
*/
|
|
199
|
+
simulatePayment(publicId: string, opts?: SimulatePaymentOptions): Promise<CheckoutSession>;
|
|
200
|
+
};
|
|
201
|
+
/** Subscription plans and their hosted `checkoutUrl` — see ./plans.ts. */
|
|
202
|
+
readonly plans: PlansResource;
|
|
203
|
+
/** Reusable billing contacts for one-off invoices. */
|
|
204
|
+
readonly customers: CustomersResource;
|
|
205
|
+
/** Draft, finalize, deliver, and collect one-off invoices. */
|
|
206
|
+
readonly invoices: InvoicesResource;
|
|
207
|
+
/**
|
|
208
|
+
* Payment mandates: bounded, revocable spending approvals a payer signs once.
|
|
209
|
+
*
|
|
210
|
+
* There is no `mandates.activate` on purpose — activation carries the
|
|
211
|
+
* *payer's* signature, is authorized by their wallet rather than by this API
|
|
212
|
+
* key, and therefore belongs in the payer-facing frontend. See the module
|
|
213
|
+
* comment in ./mandates.ts.
|
|
214
|
+
*/
|
|
215
|
+
readonly mandates: MandatesResource;
|
|
216
|
+
/**
|
|
217
|
+
* Webhook signature verification. Also exported as the free function
|
|
218
|
+
* `constructEvent` — a webhook route rarely has a client instance in scope,
|
|
219
|
+
* and verification needs the endpoint secret rather than the API key.
|
|
220
|
+
*/
|
|
221
|
+
readonly webhooks: {
|
|
222
|
+
constructEvent(rawBody: string | Uint8Array, signatureHeader: string, secret: string, opts?: ConstructEventOptions): Promise<PeerPayEvent>;
|
|
223
|
+
};
|
|
224
|
+
private readonly apiKey;
|
|
225
|
+
private readonly fetchFn;
|
|
226
|
+
private readonly configTtlMs;
|
|
227
|
+
private readonly expectedPayTo?;
|
|
228
|
+
private cache?;
|
|
229
|
+
private inflight?;
|
|
230
|
+
/**
|
|
231
|
+
* The single authenticated-JSON seam every resource goes through. Bound as a
|
|
232
|
+
* field so it can be handed to `./plans.ts` / `./mandates.ts` without leaking
|
|
233
|
+
* the key, the base URL or `fetch` into them.
|
|
234
|
+
*/
|
|
235
|
+
private readonly request;
|
|
236
|
+
constructor(options: PeerPayClientOptions);
|
|
237
|
+
/**
|
|
238
|
+
* Resolve (and cache) the seller config from the key. Single-flight so a
|
|
239
|
+
* cold-start burst shares one request; failures are never cached (the memo is
|
|
240
|
+
* cleared on rejection so the next call retries).
|
|
241
|
+
*/
|
|
242
|
+
retrieveSeller(opts?: {
|
|
243
|
+
forceRefresh?: boolean;
|
|
244
|
+
}): Promise<SellerConfig>;
|
|
245
|
+
gate(config: GateConfig): ResolvingGate;
|
|
246
|
+
private fetchSeller;
|
|
247
|
+
private assertSafe;
|
|
248
|
+
/**
|
|
249
|
+
* Applies the `expectedPayTo` pin to a destination the server just froze onto
|
|
250
|
+
* a newly created object.
|
|
251
|
+
*
|
|
252
|
+
* Checking it in `assertSafe` alone was not enough: that only covers the
|
|
253
|
+
* `/api/v1/seller` config lookup, while a checkout link and a subscription
|
|
254
|
+
* plan each record their own `destinationWallet` at creation. Those are the
|
|
255
|
+
* addresses money actually moves to — a pin that does not cover them is not
|
|
256
|
+
* the guarantee the option advertises.
|
|
257
|
+
*/
|
|
258
|
+
private assertPinnedDestination;
|
|
259
|
+
/**
|
|
260
|
+
* One authenticated JSON round-trip, with the error mapping every method
|
|
261
|
+
* shares. A transport failure (no response at all) is the only case handled
|
|
262
|
+
* here rather than in `throwForErrorResponse`, because there is no status to
|
|
263
|
+
* map — it is always a config/connectivity problem.
|
|
264
|
+
*/
|
|
265
|
+
private performRequest;
|
|
266
|
+
private createCheckout;
|
|
267
|
+
/**
|
|
268
|
+
* Fetch the current state of a checkout link. `paid` is the field to poll on;
|
|
269
|
+
* an unknown publicId raises `PeerPayNotFoundError`, never a config error.
|
|
270
|
+
*/
|
|
271
|
+
private retrieveCheckout;
|
|
272
|
+
/** Test-mode only — see the doc on `checkout.simulatePayment`. */
|
|
273
|
+
private simulateCheckoutPayment;
|
|
274
|
+
}
|
|
275
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,KAAK,EAAe,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAGvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAaxD,OAAO,KAAK,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC;AAE7C,MAAM,MAAM,oBAAoB,GAAG;IACjC,8EAA8E;IAC9E,MAAM,EAAE,MAAM,CAAC;IACf,qGAAqG;IACrG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gEAAgE;IAChE,OAAO,CAAC,EAAE,OAAO,KAAK,CAAC;IACvB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mFAAmF;IACnF,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,cAAc,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE;QACP,WAAW,EAAE,kBAAkB,CAAC;QAChC,OAAO,EAAE,MA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