@moneydevkit/nextjs 0.1.21 → 0.1.22

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.
Files changed (128) hide show
  1. package/README.md +1 -2
  2. package/dist/components/Checkout.d.ts +4 -5
  3. package/dist/components/Checkout.js +2 -133
  4. package/dist/components/Checkout.js.map +1 -1
  5. package/dist/hooks/useCheckout.d.ts +1 -5
  6. package/dist/hooks/useCheckout.js +1 -25
  7. package/dist/hooks/useCheckout.js.map +1 -1
  8. package/dist/hooks/useCheckoutSuccess.d.ts +1 -5
  9. package/dist/hooks/useCheckoutSuccess.js +1 -63
  10. package/dist/hooks/useCheckoutSuccess.js.map +1 -1
  11. package/dist/index.d.ts +0 -2
  12. package/dist/index.js +0 -1
  13. package/dist/index.js.map +1 -1
  14. package/dist/server/route.d.ts +1 -9
  15. package/dist/server/route.js +1 -104
  16. package/dist/server/route.js.map +1 -1
  17. package/dist/server/undici-dispatcher.d.ts +4 -0
  18. package/dist/server/undici-dispatcher.js +13 -0
  19. package/dist/server/undici-dispatcher.js.map +1 -0
  20. package/package.json +5 -16
  21. package/dist/components/checkout/ExpiredCheckout.d.ts +0 -11
  22. package/dist/components/checkout/ExpiredCheckout.js +0 -25
  23. package/dist/components/checkout/ExpiredCheckout.js.map +0 -1
  24. package/dist/components/checkout/PaymentReceivedCheckout.d.ts +0 -6
  25. package/dist/components/checkout/PaymentReceivedCheckout.js +0 -22
  26. package/dist/components/checkout/PaymentReceivedCheckout.js.map +0 -1
  27. package/dist/components/checkout/PendingPaymentCheckout.d.ts +0 -9
  28. package/dist/components/checkout/PendingPaymentCheckout.js +0 -63
  29. package/dist/components/checkout/PendingPaymentCheckout.js.map +0 -1
  30. package/dist/components/checkout/UnconfirmedCheckout.d.ts +0 -9
  31. package/dist/components/checkout/UnconfirmedCheckout.js +0 -54
  32. package/dist/components/checkout/UnconfirmedCheckout.js.map +0 -1
  33. package/dist/components/ui/button.d.ts +0 -10
  34. package/dist/components/ui/button.js +0 -32
  35. package/dist/components/ui/button.js.map +0 -1
  36. package/dist/components/ui/card.d.ts +0 -9
  37. package/dist/components/ui/card.js +0 -25
  38. package/dist/components/ui/card.js.map +0 -1
  39. package/dist/components/ui/collapsible.d.ts +0 -5
  40. package/dist/components/ui/collapsible.js +0 -14
  41. package/dist/components/ui/collapsible.js.map +0 -1
  42. package/dist/components/ui/dialog.d.ts +0 -15
  43. package/dist/components/ui/dialog.js +0 -37
  44. package/dist/components/ui/dialog.js.map +0 -1
  45. package/dist/components/ui/drawer.d.ts +0 -13
  46. package/dist/components/ui/drawer.js +0 -36
  47. package/dist/components/ui/drawer.js.map +0 -1
  48. package/dist/components/ui/form.d.ts +0 -24
  49. package/dist/components/ui/form.js +0 -60
  50. package/dist/components/ui/form.js.map +0 -1
  51. package/dist/components/ui/input.d.ts +0 -3
  52. package/dist/components/ui/input.js +0 -7
  53. package/dist/components/ui/input.js.map +0 -1
  54. package/dist/components/ui/label.d.ts +0 -4
  55. package/dist/components/ui/label.js +0 -9
  56. package/dist/components/ui/label.js.map +0 -1
  57. package/dist/components/ui/select.d.ts +0 -15
  58. package/dist/components/ui/select.js +0 -39
  59. package/dist/components/ui/select.js.map +0 -1
  60. package/dist/components/ui/textarea.d.ts +0 -3
  61. package/dist/components/ui/textarea.js +0 -7
  62. package/dist/components/ui/textarea.js.map +0 -1
  63. package/dist/constants.d.ts +0 -1
  64. package/dist/constants.js +0 -2
  65. package/dist/constants.js.map +0 -1
  66. package/dist/lib/utils.d.ts +0 -2
  67. package/dist/lib/utils.js +0 -6
  68. package/dist/lib/utils.js.map +0 -1
  69. package/dist/providers.d.ts +0 -7
  70. package/dist/providers.js +0 -22
  71. package/dist/providers.js.map +0 -1
  72. package/dist/server/actions.d.ts +0 -2510
  73. package/dist/server/actions.js +0 -78
  74. package/dist/server/actions.js.map +0 -1
  75. package/dist/server/handlers/balance.d.ts +0 -1
  76. package/dist/server/handlers/balance.js +0 -19
  77. package/dist/server/handlers/balance.js.map +0 -1
  78. package/dist/server/handlers/list_channels.d.ts +0 -1
  79. package/dist/server/handlers/list_channels.js +0 -15
  80. package/dist/server/handlers/list_channels.js.map +0 -1
  81. package/dist/server/handlers/pay_bolt_11.d.ts +0 -1
  82. package/dist/server/handlers/pay_bolt_11.js +0 -19
  83. package/dist/server/handlers/pay_bolt_11.js.map +0 -1
  84. package/dist/server/handlers/pay_bolt_12.d.ts +0 -1
  85. package/dist/server/handlers/pay_bolt_12.js +0 -25
  86. package/dist/server/handlers/pay_bolt_12.js.map +0 -1
  87. package/dist/server/handlers/pay_ln_url.d.ts +0 -1
  88. package/dist/server/handlers/pay_ln_url.js +0 -25
  89. package/dist/server/handlers/pay_ln_url.js.map +0 -1
  90. package/dist/server/handlers/ping.d.ts +0 -1
  91. package/dist/server/handlers/ping.js +0 -13
  92. package/dist/server/handlers/ping.js.map +0 -1
  93. package/dist/server/handlers/webhooks.d.ts +0 -1
  94. package/dist/server/handlers/webhooks.js +0 -46
  95. package/dist/server/handlers/webhooks.js.map +0 -1
  96. package/dist/server/index.d.ts +0 -2501
  97. package/dist/server/index.js +0 -15
  98. package/dist/server/index.js.map +0 -1
  99. package/dist/server/lightning-logs.d.ts +0 -5
  100. package/dist/server/lightning-logs.js +0 -170
  101. package/dist/server/lightning-logs.js.map +0 -1
  102. package/dist/server/lightning-node.d.ts +0 -42
  103. package/dist/server/lightning-node.js +0 -87
  104. package/dist/server/lightning-node.js.map +0 -1
  105. package/dist/server/logging.d.ts +0 -3
  106. package/dist/server/logging.js +0 -17
  107. package/dist/server/logging.js.map +0 -1
  108. package/dist/server/mdk-client.d.ts +0 -3341
  109. package/dist/server/mdk-client.js +0 -37
  110. package/dist/server/mdk-client.js.map +0 -1
  111. package/dist/server/mdk-config.d.ts +0 -18
  112. package/dist/server/mdk-config.js +0 -19
  113. package/dist/server/mdk-config.js.map +0 -1
  114. package/dist/server/mdk.d.ts +0 -6
  115. package/dist/server/mdk.js +0 -69
  116. package/dist/server/mdk.js.map +0 -1
  117. package/dist/server/money-dev-kit.d.ts +0 -11
  118. package/dist/server/money-dev-kit.js +0 -3
  119. package/dist/server/money-dev-kit.js.map +0 -1
  120. package/dist/server/payment-state.d.ts +0 -3
  121. package/dist/server/payment-state.js +0 -32
  122. package/dist/server/payment-state.js.map +0 -1
  123. package/dist/server/runtime.d.ts +0 -3
  124. package/dist/server/runtime.js +0 -4
  125. package/dist/server/runtime.js.map +0 -1
  126. package/dist/styles.d.ts +0 -2
  127. package/dist/styles.js +0 -17
  128. package/dist/styles.js.map +0 -1
@@ -1,2501 +0,0 @@
1
- import { getCheckout as getCheckoutImpl, confirmCheckout as confirmCheckoutImpl, createCheckout as createCheckoutImpl, payInvoice as payInvoiceImpl } from './actions';
2
- export type { CreateCheckoutParams } from './actions';
3
- export declare function getCheckout(...args: Parameters<typeof getCheckoutImpl>): Promise<{
4
- currency: string;
5
- type: "PRODUCTS";
6
- status: "UNCONFIRMED";
7
- products: [{
8
- id: string;
9
- name: string;
10
- description: string | null;
11
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
12
- prices: {
13
- priceAmount: number | null;
14
- id: string;
15
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
16
- minimumAmount: number | null;
17
- maximumAmount: number | null;
18
- presetAmount: number | null;
19
- unitAmount: number | null;
20
- capAmount: number | null;
21
- meterId: string | null;
22
- }[];
23
- }, ...{
24
- id: string;
25
- name: string;
26
- description: string | null;
27
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
28
- prices: {
29
- priceAmount: number | null;
30
- id: string;
31
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
32
- minimumAmount: number | null;
33
- maximumAmount: number | null;
34
- presetAmount: number | null;
35
- unitAmount: number | null;
36
- capAmount: number | null;
37
- meterId: string | null;
38
- }[];
39
- }[]];
40
- successUrl: string | null;
41
- allowDiscountCodes: boolean;
42
- customerName: string | null;
43
- customerEmail: string | null;
44
- customerIpAddress: string | null;
45
- customerExternalId: string | null;
46
- requireCustomerFields: {
47
- customerName?: boolean | undefined;
48
- customerEmail?: boolean | undefined;
49
- } | null;
50
- invoice: {
51
- currency: string;
52
- invoice: string;
53
- paymentHash: string;
54
- amountSats: number | null;
55
- expiresAt: Date;
56
- btcPrice: number | null;
57
- amountSatsReceived: number | null;
58
- fiatAmount: number | null;
59
- } | null;
60
- id: string;
61
- createdAt: Date;
62
- clientSecret: string;
63
- organizationId: string;
64
- expiresAt: Date;
65
- userMetadata: Record<string, any> | null;
66
- customFieldData: Record<string, any> | null;
67
- customerMetadata: Record<string, any> | null;
68
- customerId: string | null;
69
- customerBillingAddress: Record<string, any> | null;
70
- providedAmount: number | null;
71
- totalAmount: number | null;
72
- discountAmount: number | null;
73
- netAmount: number | null;
74
- taxAmount: number | null;
75
- invoiceAmountSats: number | null;
76
- invoiceScid: string | null;
77
- btcPrice: number | null;
78
- } | {
79
- currency: string;
80
- type: "AMOUNT";
81
- status: "UNCONFIRMED";
82
- products: {
83
- id: string;
84
- name: string;
85
- description: string | null;
86
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
87
- prices: {
88
- priceAmount: number | null;
89
- id: string;
90
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
91
- minimumAmount: number | null;
92
- maximumAmount: number | null;
93
- presetAmount: number | null;
94
- unitAmount: number | null;
95
- capAmount: number | null;
96
- meterId: string | null;
97
- }[];
98
- }[] | null;
99
- successUrl: string | null;
100
- allowDiscountCodes: boolean;
101
- customerName: string | null;
102
- customerEmail: string | null;
103
- customerIpAddress: string | null;
104
- customerExternalId: string | null;
105
- requireCustomerFields: {
106
- customerName?: boolean | undefined;
107
- customerEmail?: boolean | undefined;
108
- } | null;
109
- invoice: {
110
- currency: string;
111
- invoice: string;
112
- paymentHash: string;
113
- amountSats: number | null;
114
- expiresAt: Date;
115
- btcPrice: number | null;
116
- amountSatsReceived: number | null;
117
- fiatAmount: number | null;
118
- } | null;
119
- id: string;
120
- createdAt: Date;
121
- clientSecret: string;
122
- organizationId: string;
123
- expiresAt: Date;
124
- userMetadata: Record<string, any> | null;
125
- customFieldData: Record<string, any> | null;
126
- customerMetadata: Record<string, any> | null;
127
- customerId: string | null;
128
- customerBillingAddress: Record<string, any> | null;
129
- providedAmount: number;
130
- totalAmount: number | null;
131
- discountAmount: number | null;
132
- netAmount: number | null;
133
- taxAmount: number | null;
134
- invoiceAmountSats: number | null;
135
- invoiceScid: string | null;
136
- btcPrice: number | null;
137
- } | {
138
- currency: string;
139
- type: "TOP_UP";
140
- status: "UNCONFIRMED";
141
- products: {
142
- id: string;
143
- name: string;
144
- description: string | null;
145
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
146
- prices: {
147
- priceAmount: number | null;
148
- id: string;
149
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
150
- minimumAmount: number | null;
151
- maximumAmount: number | null;
152
- presetAmount: number | null;
153
- unitAmount: number | null;
154
- capAmount: number | null;
155
- meterId: string | null;
156
- }[];
157
- }[] | null;
158
- successUrl: string | null;
159
- allowDiscountCodes: boolean;
160
- customerName: string | null;
161
- customerEmail: string | null;
162
- customerIpAddress: string | null;
163
- customerExternalId: string | null;
164
- requireCustomerFields: {
165
- customerName?: boolean | undefined;
166
- customerEmail?: boolean | undefined;
167
- } | null;
168
- invoice: {
169
- currency: string;
170
- invoice: string;
171
- paymentHash: string;
172
- amountSats: number | null;
173
- expiresAt: Date;
174
- btcPrice: number | null;
175
- amountSatsReceived: number | null;
176
- fiatAmount: number | null;
177
- } | null;
178
- id: string;
179
- createdAt: Date;
180
- clientSecret: string;
181
- organizationId: string;
182
- expiresAt: Date;
183
- userMetadata: Record<string, any> | null;
184
- customFieldData: Record<string, any> | null;
185
- customerMetadata: Record<string, any> | null;
186
- customerId: string | null;
187
- customerBillingAddress: Record<string, any> | null;
188
- providedAmount: number | null;
189
- totalAmount: number | null;
190
- discountAmount: number | null;
191
- netAmount: number | null;
192
- taxAmount: number | null;
193
- invoiceAmountSats: number | null;
194
- invoiceScid: string | null;
195
- btcPrice: number | null;
196
- } | {
197
- currency: string;
198
- type: "PRODUCTS";
199
- status: "CONFIRMED";
200
- products: [{
201
- id: string;
202
- name: string;
203
- description: string | null;
204
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
205
- prices: {
206
- priceAmount: number | null;
207
- id: string;
208
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
209
- minimumAmount: number | null;
210
- maximumAmount: number | null;
211
- presetAmount: number | null;
212
- unitAmount: number | null;
213
- capAmount: number | null;
214
- meterId: string | null;
215
- }[];
216
- }, ...{
217
- id: string;
218
- name: string;
219
- description: string | null;
220
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
221
- prices: {
222
- priceAmount: number | null;
223
- id: string;
224
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
225
- minimumAmount: number | null;
226
- maximumAmount: number | null;
227
- presetAmount: number | null;
228
- unitAmount: number | null;
229
- capAmount: number | null;
230
- meterId: string | null;
231
- }[];
232
- }[]];
233
- successUrl: string | null;
234
- allowDiscountCodes: boolean;
235
- customerName: string | null;
236
- customerEmail: string | null;
237
- customerIpAddress: string | null;
238
- customerExternalId: string | null;
239
- requireCustomerFields: {
240
- customerName?: boolean | undefined;
241
- customerEmail?: boolean | undefined;
242
- } | null;
243
- invoice: {
244
- currency: string;
245
- invoice: string;
246
- paymentHash: string;
247
- amountSats: number | null;
248
- expiresAt: Date;
249
- btcPrice: number | null;
250
- amountSatsReceived: number | null;
251
- fiatAmount: number | null;
252
- } | null;
253
- id: string;
254
- createdAt: Date;
255
- clientSecret: string;
256
- organizationId: string;
257
- expiresAt: Date;
258
- userMetadata: Record<string, any> | null;
259
- customFieldData: Record<string, any> | null;
260
- customerMetadata: Record<string, any> | null;
261
- customerId: string | null;
262
- customerBillingAddress: Record<string, any> | null;
263
- providedAmount: number | null;
264
- totalAmount: number;
265
- discountAmount: number;
266
- netAmount: number;
267
- taxAmount: number;
268
- invoiceAmountSats: number;
269
- invoiceScid: string | null;
270
- btcPrice: number;
271
- } | {
272
- currency: string;
273
- type: "AMOUNT";
274
- status: "CONFIRMED";
275
- products: {
276
- id: string;
277
- name: string;
278
- description: string | null;
279
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
280
- prices: {
281
- priceAmount: number | null;
282
- id: string;
283
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
284
- minimumAmount: number | null;
285
- maximumAmount: number | null;
286
- presetAmount: number | null;
287
- unitAmount: number | null;
288
- capAmount: number | null;
289
- meterId: string | null;
290
- }[];
291
- }[] | null;
292
- successUrl: string | null;
293
- allowDiscountCodes: boolean;
294
- customerName: string | null;
295
- customerEmail: string | null;
296
- customerIpAddress: string | null;
297
- customerExternalId: string | null;
298
- requireCustomerFields: {
299
- customerName?: boolean | undefined;
300
- customerEmail?: boolean | undefined;
301
- } | null;
302
- invoice: {
303
- currency: string;
304
- invoice: string;
305
- paymentHash: string;
306
- amountSats: number | null;
307
- expiresAt: Date;
308
- btcPrice: number | null;
309
- amountSatsReceived: number | null;
310
- fiatAmount: number | null;
311
- } | null;
312
- id: string;
313
- createdAt: Date;
314
- clientSecret: string;
315
- organizationId: string;
316
- expiresAt: Date;
317
- userMetadata: Record<string, any> | null;
318
- customFieldData: Record<string, any> | null;
319
- customerMetadata: Record<string, any> | null;
320
- customerId: string | null;
321
- customerBillingAddress: Record<string, any> | null;
322
- providedAmount: number;
323
- totalAmount: number;
324
- discountAmount: number;
325
- netAmount: number;
326
- taxAmount: number;
327
- invoiceAmountSats: number;
328
- invoiceScid: string | null;
329
- btcPrice: number;
330
- } | {
331
- currency: string;
332
- type: "TOP_UP";
333
- status: "CONFIRMED";
334
- products: {
335
- id: string;
336
- name: string;
337
- description: string | null;
338
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
339
- prices: {
340
- priceAmount: number | null;
341
- id: string;
342
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
343
- minimumAmount: number | null;
344
- maximumAmount: number | null;
345
- presetAmount: number | null;
346
- unitAmount: number | null;
347
- capAmount: number | null;
348
- meterId: string | null;
349
- }[];
350
- }[] | null;
351
- successUrl: string | null;
352
- allowDiscountCodes: boolean;
353
- customerName: string | null;
354
- customerEmail: string | null;
355
- customerIpAddress: string | null;
356
- customerExternalId: string | null;
357
- requireCustomerFields: {
358
- customerName?: boolean | undefined;
359
- customerEmail?: boolean | undefined;
360
- } | null;
361
- invoice: {
362
- currency: string;
363
- invoice: string;
364
- paymentHash: string;
365
- amountSats: number | null;
366
- expiresAt: Date;
367
- btcPrice: number | null;
368
- amountSatsReceived: number | null;
369
- fiatAmount: number | null;
370
- } | null;
371
- id: string;
372
- createdAt: Date;
373
- clientSecret: string;
374
- organizationId: string;
375
- expiresAt: Date;
376
- userMetadata: Record<string, any> | null;
377
- customFieldData: Record<string, any> | null;
378
- customerMetadata: Record<string, any> | null;
379
- customerId: string | null;
380
- customerBillingAddress: Record<string, any> | null;
381
- providedAmount: number | null;
382
- totalAmount: number | null;
383
- discountAmount: number | null;
384
- netAmount: number | null;
385
- taxAmount: number | null;
386
- invoiceAmountSats: number | null;
387
- invoiceScid: string | null;
388
- btcPrice: number | null;
389
- } | {
390
- currency: string;
391
- type: "PRODUCTS";
392
- status: "PENDING_PAYMENT";
393
- products: [{
394
- id: string;
395
- name: string;
396
- description: string | null;
397
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
398
- prices: {
399
- priceAmount: number | null;
400
- id: string;
401
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
402
- minimumAmount: number | null;
403
- maximumAmount: number | null;
404
- presetAmount: number | null;
405
- unitAmount: number | null;
406
- capAmount: number | null;
407
- meterId: string | null;
408
- }[];
409
- }, ...{
410
- id: string;
411
- name: string;
412
- description: string | null;
413
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
414
- prices: {
415
- priceAmount: number | null;
416
- id: string;
417
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
418
- minimumAmount: number | null;
419
- maximumAmount: number | null;
420
- presetAmount: number | null;
421
- unitAmount: number | null;
422
- capAmount: number | null;
423
- meterId: string | null;
424
- }[];
425
- }[]];
426
- successUrl: string | null;
427
- allowDiscountCodes: boolean;
428
- customerName: string | null;
429
- customerEmail: string | null;
430
- customerIpAddress: string | null;
431
- customerExternalId: string | null;
432
- requireCustomerFields: {
433
- customerName?: boolean | undefined;
434
- customerEmail?: boolean | undefined;
435
- } | null;
436
- invoice: {
437
- currency: string;
438
- invoice: string;
439
- paymentHash: string;
440
- amountSats: number;
441
- expiresAt: Date;
442
- btcPrice: number;
443
- amountSatsReceived: number | null;
444
- fiatAmount: number;
445
- };
446
- id: string;
447
- createdAt: Date;
448
- clientSecret: string;
449
- organizationId: string;
450
- expiresAt: Date;
451
- userMetadata: Record<string, any> | null;
452
- customFieldData: Record<string, any> | null;
453
- customerMetadata: Record<string, any> | null;
454
- customerId: string | null;
455
- customerBillingAddress: Record<string, any> | null;
456
- providedAmount: number | null;
457
- totalAmount: number;
458
- discountAmount: number;
459
- netAmount: number;
460
- taxAmount: number;
461
- invoiceAmountSats: number;
462
- invoiceScid: string | null;
463
- btcPrice: number;
464
- } | {
465
- currency: string;
466
- type: "AMOUNT";
467
- status: "PENDING_PAYMENT";
468
- products: {
469
- id: string;
470
- name: string;
471
- description: string | null;
472
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
473
- prices: {
474
- priceAmount: number | null;
475
- id: string;
476
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
477
- minimumAmount: number | null;
478
- maximumAmount: number | null;
479
- presetAmount: number | null;
480
- unitAmount: number | null;
481
- capAmount: number | null;
482
- meterId: string | null;
483
- }[];
484
- }[] | null;
485
- successUrl: string | null;
486
- allowDiscountCodes: boolean;
487
- customerName: string | null;
488
- customerEmail: string | null;
489
- customerIpAddress: string | null;
490
- customerExternalId: string | null;
491
- requireCustomerFields: {
492
- customerName?: boolean | undefined;
493
- customerEmail?: boolean | undefined;
494
- } | null;
495
- invoice: {
496
- currency: string;
497
- invoice: string;
498
- paymentHash: string;
499
- amountSats: number;
500
- expiresAt: Date;
501
- btcPrice: number;
502
- amountSatsReceived: number | null;
503
- fiatAmount: number;
504
- };
505
- id: string;
506
- createdAt: Date;
507
- clientSecret: string;
508
- organizationId: string;
509
- expiresAt: Date;
510
- userMetadata: Record<string, any> | null;
511
- customFieldData: Record<string, any> | null;
512
- customerMetadata: Record<string, any> | null;
513
- customerId: string | null;
514
- customerBillingAddress: Record<string, any> | null;
515
- providedAmount: number;
516
- totalAmount: number;
517
- discountAmount: number;
518
- netAmount: number;
519
- taxAmount: number;
520
- invoiceAmountSats: number;
521
- invoiceScid: string | null;
522
- btcPrice: number;
523
- } | {
524
- currency: string;
525
- type: "TOP_UP";
526
- status: "PENDING_PAYMENT";
527
- products: {
528
- id: string;
529
- name: string;
530
- description: string | null;
531
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
532
- prices: {
533
- priceAmount: number | null;
534
- id: string;
535
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
536
- minimumAmount: number | null;
537
- maximumAmount: number | null;
538
- presetAmount: number | null;
539
- unitAmount: number | null;
540
- capAmount: number | null;
541
- meterId: string | null;
542
- }[];
543
- }[] | null;
544
- successUrl: string | null;
545
- allowDiscountCodes: boolean;
546
- customerName: string | null;
547
- customerEmail: string | null;
548
- customerIpAddress: string | null;
549
- customerExternalId: string | null;
550
- requireCustomerFields: {
551
- customerName?: boolean | undefined;
552
- customerEmail?: boolean | undefined;
553
- } | null;
554
- invoice: {
555
- currency: string;
556
- invoice: string;
557
- paymentHash: string;
558
- amountSats: number | null;
559
- expiresAt: Date;
560
- btcPrice: number | null;
561
- amountSatsReceived: number | null;
562
- fiatAmount: number | null;
563
- };
564
- id: string;
565
- createdAt: Date;
566
- clientSecret: string;
567
- organizationId: string;
568
- expiresAt: Date;
569
- userMetadata: Record<string, any> | null;
570
- customFieldData: Record<string, any> | null;
571
- customerMetadata: Record<string, any> | null;
572
- customerId: string | null;
573
- customerBillingAddress: Record<string, any> | null;
574
- providedAmount: number | null;
575
- totalAmount: number | null;
576
- discountAmount: number | null;
577
- netAmount: number | null;
578
- taxAmount: number | null;
579
- invoiceAmountSats: number | null;
580
- invoiceScid: string | null;
581
- btcPrice: number | null;
582
- } | {
583
- currency: string;
584
- type: "PRODUCTS";
585
- status: "PAYMENT_RECEIVED";
586
- products: [{
587
- id: string;
588
- name: string;
589
- description: string | null;
590
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
591
- prices: {
592
- priceAmount: number | null;
593
- id: string;
594
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
595
- minimumAmount: number | null;
596
- maximumAmount: number | null;
597
- presetAmount: number | null;
598
- unitAmount: number | null;
599
- capAmount: number | null;
600
- meterId: string | null;
601
- }[];
602
- }, ...{
603
- id: string;
604
- name: string;
605
- description: string | null;
606
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
607
- prices: {
608
- priceAmount: number | null;
609
- id: string;
610
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
611
- minimumAmount: number | null;
612
- maximumAmount: number | null;
613
- presetAmount: number | null;
614
- unitAmount: number | null;
615
- capAmount: number | null;
616
- meterId: string | null;
617
- }[];
618
- }[]];
619
- successUrl: string | null;
620
- allowDiscountCodes: boolean;
621
- customerName: string | null;
622
- customerEmail: string | null;
623
- customerIpAddress: string | null;
624
- customerExternalId: string | null;
625
- requireCustomerFields: {
626
- customerName?: boolean | undefined;
627
- customerEmail?: boolean | undefined;
628
- } | null;
629
- invoice: {
630
- currency: string;
631
- invoice: string;
632
- paymentHash: string;
633
- amountSats: number;
634
- expiresAt: Date;
635
- btcPrice: number;
636
- amountSatsReceived: number;
637
- fiatAmount: number;
638
- };
639
- id: string;
640
- createdAt: Date;
641
- clientSecret: string;
642
- organizationId: string;
643
- expiresAt: Date;
644
- userMetadata: Record<string, any> | null;
645
- customFieldData: Record<string, any> | null;
646
- customerMetadata: Record<string, any> | null;
647
- customerId: string | null;
648
- customerBillingAddress: Record<string, any> | null;
649
- providedAmount: number | null;
650
- totalAmount: number;
651
- discountAmount: number;
652
- netAmount: number;
653
- taxAmount: number;
654
- invoiceAmountSats: number;
655
- invoiceScid: string | null;
656
- btcPrice: number;
657
- } | {
658
- currency: string;
659
- type: "AMOUNT";
660
- status: "PAYMENT_RECEIVED";
661
- products: {
662
- id: string;
663
- name: string;
664
- description: string | null;
665
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
666
- prices: {
667
- priceAmount: number | null;
668
- id: string;
669
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
670
- minimumAmount: number | null;
671
- maximumAmount: number | null;
672
- presetAmount: number | null;
673
- unitAmount: number | null;
674
- capAmount: number | null;
675
- meterId: string | null;
676
- }[];
677
- }[] | null;
678
- successUrl: string | null;
679
- allowDiscountCodes: boolean;
680
- customerName: string | null;
681
- customerEmail: string | null;
682
- customerIpAddress: string | null;
683
- customerExternalId: string | null;
684
- requireCustomerFields: {
685
- customerName?: boolean | undefined;
686
- customerEmail?: boolean | undefined;
687
- } | null;
688
- invoice: {
689
- currency: string;
690
- invoice: string;
691
- paymentHash: string;
692
- amountSats: number;
693
- expiresAt: Date;
694
- btcPrice: number;
695
- amountSatsReceived: number;
696
- fiatAmount: number;
697
- };
698
- id: string;
699
- createdAt: Date;
700
- clientSecret: string;
701
- organizationId: string;
702
- expiresAt: Date;
703
- userMetadata: Record<string, any> | null;
704
- customFieldData: Record<string, any> | null;
705
- customerMetadata: Record<string, any> | null;
706
- customerId: string | null;
707
- customerBillingAddress: Record<string, any> | null;
708
- providedAmount: number;
709
- totalAmount: number;
710
- discountAmount: number;
711
- netAmount: number;
712
- taxAmount: number;
713
- invoiceAmountSats: number;
714
- invoiceScid: string | null;
715
- btcPrice: number;
716
- } | {
717
- currency: string;
718
- type: "TOP_UP";
719
- status: "PAYMENT_RECEIVED";
720
- products: {
721
- id: string;
722
- name: string;
723
- description: string | null;
724
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
725
- prices: {
726
- priceAmount: number | null;
727
- id: string;
728
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
729
- minimumAmount: number | null;
730
- maximumAmount: number | null;
731
- presetAmount: number | null;
732
- unitAmount: number | null;
733
- capAmount: number | null;
734
- meterId: string | null;
735
- }[];
736
- }[] | null;
737
- successUrl: string | null;
738
- allowDiscountCodes: boolean;
739
- customerName: string | null;
740
- customerEmail: string | null;
741
- customerIpAddress: string | null;
742
- customerExternalId: string | null;
743
- requireCustomerFields: {
744
- customerName?: boolean | undefined;
745
- customerEmail?: boolean | undefined;
746
- } | null;
747
- invoice: {
748
- currency: string;
749
- invoice: string;
750
- paymentHash: string;
751
- amountSats: number;
752
- expiresAt: Date;
753
- btcPrice: number;
754
- amountSatsReceived: number;
755
- fiatAmount: number;
756
- };
757
- id: string;
758
- createdAt: Date;
759
- clientSecret: string;
760
- organizationId: string;
761
- expiresAt: Date;
762
- userMetadata: Record<string, any> | null;
763
- customFieldData: Record<string, any> | null;
764
- customerMetadata: Record<string, any> | null;
765
- customerId: string | null;
766
- customerBillingAddress: Record<string, any> | null;
767
- providedAmount: number | null;
768
- totalAmount: number;
769
- discountAmount: number;
770
- netAmount: number;
771
- taxAmount: number;
772
- invoiceAmountSats: number;
773
- invoiceScid: string | null;
774
- btcPrice: number;
775
- } | {
776
- currency: string;
777
- type: "PRODUCTS" | "AMOUNT" | "TOP_UP";
778
- status: "EXPIRED";
779
- products: {
780
- id: string;
781
- name: string;
782
- description: string | null;
783
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
784
- prices: {
785
- priceAmount: number | null;
786
- id: string;
787
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
788
- minimumAmount: number | null;
789
- maximumAmount: number | null;
790
- presetAmount: number | null;
791
- unitAmount: number | null;
792
- capAmount: number | null;
793
- meterId: string | null;
794
- }[];
795
- }[] | null;
796
- successUrl: string | null;
797
- allowDiscountCodes: boolean;
798
- customerName: string | null;
799
- customerEmail: string | null;
800
- customerIpAddress: string | null;
801
- customerExternalId: string | null;
802
- requireCustomerFields: {
803
- customerName?: boolean | undefined;
804
- customerEmail?: boolean | undefined;
805
- } | null;
806
- invoice: {
807
- currency: string;
808
- invoice: string;
809
- paymentHash: string;
810
- amountSats: number | null;
811
- expiresAt: Date;
812
- btcPrice: number | null;
813
- amountSatsReceived: number | null;
814
- fiatAmount: number | null;
815
- } | null;
816
- id: string;
817
- createdAt: Date;
818
- clientSecret: string;
819
- organizationId: string;
820
- expiresAt: Date;
821
- userMetadata: Record<string, any> | null;
822
- customFieldData: Record<string, any> | null;
823
- customerMetadata: Record<string, any> | null;
824
- customerId: string | null;
825
- customerBillingAddress: Record<string, any> | null;
826
- providedAmount: number | null;
827
- totalAmount: number | null;
828
- discountAmount: number | null;
829
- netAmount: number | null;
830
- taxAmount: number | null;
831
- invoiceAmountSats: number | null;
832
- invoiceScid: string | null;
833
- btcPrice: number | null;
834
- }>;
835
- export declare function confirmCheckout(...args: Parameters<typeof confirmCheckoutImpl>): Promise<{
836
- currency: string;
837
- type: "PRODUCTS";
838
- status: "UNCONFIRMED";
839
- products: [{
840
- id: string;
841
- name: string;
842
- description: string | null;
843
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
844
- prices: {
845
- priceAmount: number | null;
846
- id: string;
847
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
848
- minimumAmount: number | null;
849
- maximumAmount: number | null;
850
- presetAmount: number | null;
851
- unitAmount: number | null;
852
- capAmount: number | null;
853
- meterId: string | null;
854
- }[];
855
- }, ...{
856
- id: string;
857
- name: string;
858
- description: string | null;
859
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
860
- prices: {
861
- priceAmount: number | null;
862
- id: string;
863
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
864
- minimumAmount: number | null;
865
- maximumAmount: number | null;
866
- presetAmount: number | null;
867
- unitAmount: number | null;
868
- capAmount: number | null;
869
- meterId: string | null;
870
- }[];
871
- }[]];
872
- successUrl: string | null;
873
- allowDiscountCodes: boolean;
874
- customerName: string | null;
875
- customerEmail: string | null;
876
- customerIpAddress: string | null;
877
- customerExternalId: string | null;
878
- requireCustomerFields: {
879
- customerName?: boolean | undefined;
880
- customerEmail?: boolean | undefined;
881
- } | null;
882
- invoice: {
883
- currency: string;
884
- invoice: string;
885
- paymentHash: string;
886
- amountSats: number | null;
887
- expiresAt: Date;
888
- btcPrice: number | null;
889
- amountSatsReceived: number | null;
890
- fiatAmount: number | null;
891
- } | null;
892
- id: string;
893
- createdAt: Date;
894
- clientSecret: string;
895
- organizationId: string;
896
- expiresAt: Date;
897
- userMetadata: Record<string, any> | null;
898
- customFieldData: Record<string, any> | null;
899
- customerMetadata: Record<string, any> | null;
900
- customerId: string | null;
901
- customerBillingAddress: Record<string, any> | null;
902
- providedAmount: number | null;
903
- totalAmount: number | null;
904
- discountAmount: number | null;
905
- netAmount: number | null;
906
- taxAmount: number | null;
907
- invoiceAmountSats: number | null;
908
- invoiceScid: string | null;
909
- btcPrice: number | null;
910
- } | {
911
- currency: string;
912
- type: "AMOUNT";
913
- status: "UNCONFIRMED";
914
- products: {
915
- id: string;
916
- name: string;
917
- description: string | null;
918
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
919
- prices: {
920
- priceAmount: number | null;
921
- id: string;
922
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
923
- minimumAmount: number | null;
924
- maximumAmount: number | null;
925
- presetAmount: number | null;
926
- unitAmount: number | null;
927
- capAmount: number | null;
928
- meterId: string | null;
929
- }[];
930
- }[] | null;
931
- successUrl: string | null;
932
- allowDiscountCodes: boolean;
933
- customerName: string | null;
934
- customerEmail: string | null;
935
- customerIpAddress: string | null;
936
- customerExternalId: string | null;
937
- requireCustomerFields: {
938
- customerName?: boolean | undefined;
939
- customerEmail?: boolean | undefined;
940
- } | null;
941
- invoice: {
942
- currency: string;
943
- invoice: string;
944
- paymentHash: string;
945
- amountSats: number | null;
946
- expiresAt: Date;
947
- btcPrice: number | null;
948
- amountSatsReceived: number | null;
949
- fiatAmount: number | null;
950
- } | null;
951
- id: string;
952
- createdAt: Date;
953
- clientSecret: string;
954
- organizationId: string;
955
- expiresAt: Date;
956
- userMetadata: Record<string, any> | null;
957
- customFieldData: Record<string, any> | null;
958
- customerMetadata: Record<string, any> | null;
959
- customerId: string | null;
960
- customerBillingAddress: Record<string, any> | null;
961
- providedAmount: number;
962
- totalAmount: number | null;
963
- discountAmount: number | null;
964
- netAmount: number | null;
965
- taxAmount: number | null;
966
- invoiceAmountSats: number | null;
967
- invoiceScid: string | null;
968
- btcPrice: number | null;
969
- } | {
970
- currency: string;
971
- type: "TOP_UP";
972
- status: "UNCONFIRMED";
973
- products: {
974
- id: string;
975
- name: string;
976
- description: string | null;
977
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
978
- prices: {
979
- priceAmount: number | null;
980
- id: string;
981
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
982
- minimumAmount: number | null;
983
- maximumAmount: number | null;
984
- presetAmount: number | null;
985
- unitAmount: number | null;
986
- capAmount: number | null;
987
- meterId: string | null;
988
- }[];
989
- }[] | null;
990
- successUrl: string | null;
991
- allowDiscountCodes: boolean;
992
- customerName: string | null;
993
- customerEmail: string | null;
994
- customerIpAddress: string | null;
995
- customerExternalId: string | null;
996
- requireCustomerFields: {
997
- customerName?: boolean | undefined;
998
- customerEmail?: boolean | undefined;
999
- } | null;
1000
- invoice: {
1001
- currency: string;
1002
- invoice: string;
1003
- paymentHash: string;
1004
- amountSats: number | null;
1005
- expiresAt: Date;
1006
- btcPrice: number | null;
1007
- amountSatsReceived: number | null;
1008
- fiatAmount: number | null;
1009
- } | null;
1010
- id: string;
1011
- createdAt: Date;
1012
- clientSecret: string;
1013
- organizationId: string;
1014
- expiresAt: Date;
1015
- userMetadata: Record<string, any> | null;
1016
- customFieldData: Record<string, any> | null;
1017
- customerMetadata: Record<string, any> | null;
1018
- customerId: string | null;
1019
- customerBillingAddress: Record<string, any> | null;
1020
- providedAmount: number | null;
1021
- totalAmount: number | null;
1022
- discountAmount: number | null;
1023
- netAmount: number | null;
1024
- taxAmount: number | null;
1025
- invoiceAmountSats: number | null;
1026
- invoiceScid: string | null;
1027
- btcPrice: number | null;
1028
- } | {
1029
- currency: string;
1030
- type: "PRODUCTS";
1031
- status: "CONFIRMED";
1032
- products: [{
1033
- id: string;
1034
- name: string;
1035
- description: string | null;
1036
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1037
- prices: {
1038
- priceAmount: number | null;
1039
- id: string;
1040
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1041
- minimumAmount: number | null;
1042
- maximumAmount: number | null;
1043
- presetAmount: number | null;
1044
- unitAmount: number | null;
1045
- capAmount: number | null;
1046
- meterId: string | null;
1047
- }[];
1048
- }, ...{
1049
- id: string;
1050
- name: string;
1051
- description: string | null;
1052
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1053
- prices: {
1054
- priceAmount: number | null;
1055
- id: string;
1056
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1057
- minimumAmount: number | null;
1058
- maximumAmount: number | null;
1059
- presetAmount: number | null;
1060
- unitAmount: number | null;
1061
- capAmount: number | null;
1062
- meterId: string | null;
1063
- }[];
1064
- }[]];
1065
- successUrl: string | null;
1066
- allowDiscountCodes: boolean;
1067
- customerName: string | null;
1068
- customerEmail: string | null;
1069
- customerIpAddress: string | null;
1070
- customerExternalId: string | null;
1071
- requireCustomerFields: {
1072
- customerName?: boolean | undefined;
1073
- customerEmail?: boolean | undefined;
1074
- } | null;
1075
- invoice: {
1076
- currency: string;
1077
- invoice: string;
1078
- paymentHash: string;
1079
- amountSats: number | null;
1080
- expiresAt: Date;
1081
- btcPrice: number | null;
1082
- amountSatsReceived: number | null;
1083
- fiatAmount: number | null;
1084
- } | null;
1085
- id: string;
1086
- createdAt: Date;
1087
- clientSecret: string;
1088
- organizationId: string;
1089
- expiresAt: Date;
1090
- userMetadata: Record<string, any> | null;
1091
- customFieldData: Record<string, any> | null;
1092
- customerMetadata: Record<string, any> | null;
1093
- customerId: string | null;
1094
- customerBillingAddress: Record<string, any> | null;
1095
- providedAmount: number | null;
1096
- totalAmount: number;
1097
- discountAmount: number;
1098
- netAmount: number;
1099
- taxAmount: number;
1100
- invoiceAmountSats: number;
1101
- invoiceScid: string | null;
1102
- btcPrice: number;
1103
- } | {
1104
- currency: string;
1105
- type: "AMOUNT";
1106
- status: "CONFIRMED";
1107
- products: {
1108
- id: string;
1109
- name: string;
1110
- description: string | null;
1111
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1112
- prices: {
1113
- priceAmount: number | null;
1114
- id: string;
1115
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1116
- minimumAmount: number | null;
1117
- maximumAmount: number | null;
1118
- presetAmount: number | null;
1119
- unitAmount: number | null;
1120
- capAmount: number | null;
1121
- meterId: string | null;
1122
- }[];
1123
- }[] | null;
1124
- successUrl: string | null;
1125
- allowDiscountCodes: boolean;
1126
- customerName: string | null;
1127
- customerEmail: string | null;
1128
- customerIpAddress: string | null;
1129
- customerExternalId: string | null;
1130
- requireCustomerFields: {
1131
- customerName?: boolean | undefined;
1132
- customerEmail?: boolean | undefined;
1133
- } | null;
1134
- invoice: {
1135
- currency: string;
1136
- invoice: string;
1137
- paymentHash: string;
1138
- amountSats: number | null;
1139
- expiresAt: Date;
1140
- btcPrice: number | null;
1141
- amountSatsReceived: number | null;
1142
- fiatAmount: number | null;
1143
- } | null;
1144
- id: string;
1145
- createdAt: Date;
1146
- clientSecret: string;
1147
- organizationId: string;
1148
- expiresAt: Date;
1149
- userMetadata: Record<string, any> | null;
1150
- customFieldData: Record<string, any> | null;
1151
- customerMetadata: Record<string, any> | null;
1152
- customerId: string | null;
1153
- customerBillingAddress: Record<string, any> | null;
1154
- providedAmount: number;
1155
- totalAmount: number;
1156
- discountAmount: number;
1157
- netAmount: number;
1158
- taxAmount: number;
1159
- invoiceAmountSats: number;
1160
- invoiceScid: string | null;
1161
- btcPrice: number;
1162
- } | {
1163
- currency: string;
1164
- type: "TOP_UP";
1165
- status: "CONFIRMED";
1166
- products: {
1167
- id: string;
1168
- name: string;
1169
- description: string | null;
1170
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1171
- prices: {
1172
- priceAmount: number | null;
1173
- id: string;
1174
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1175
- minimumAmount: number | null;
1176
- maximumAmount: number | null;
1177
- presetAmount: number | null;
1178
- unitAmount: number | null;
1179
- capAmount: number | null;
1180
- meterId: string | null;
1181
- }[];
1182
- }[] | null;
1183
- successUrl: string | null;
1184
- allowDiscountCodes: boolean;
1185
- customerName: string | null;
1186
- customerEmail: string | null;
1187
- customerIpAddress: string | null;
1188
- customerExternalId: string | null;
1189
- requireCustomerFields: {
1190
- customerName?: boolean | undefined;
1191
- customerEmail?: boolean | undefined;
1192
- } | null;
1193
- invoice: {
1194
- currency: string;
1195
- invoice: string;
1196
- paymentHash: string;
1197
- amountSats: number | null;
1198
- expiresAt: Date;
1199
- btcPrice: number | null;
1200
- amountSatsReceived: number | null;
1201
- fiatAmount: number | null;
1202
- } | null;
1203
- id: string;
1204
- createdAt: Date;
1205
- clientSecret: string;
1206
- organizationId: string;
1207
- expiresAt: Date;
1208
- userMetadata: Record<string, any> | null;
1209
- customFieldData: Record<string, any> | null;
1210
- customerMetadata: Record<string, any> | null;
1211
- customerId: string | null;
1212
- customerBillingAddress: Record<string, any> | null;
1213
- providedAmount: number | null;
1214
- totalAmount: number | null;
1215
- discountAmount: number | null;
1216
- netAmount: number | null;
1217
- taxAmount: number | null;
1218
- invoiceAmountSats: number | null;
1219
- invoiceScid: string | null;
1220
- btcPrice: number | null;
1221
- } | {
1222
- currency: string;
1223
- type: "PRODUCTS";
1224
- status: "PENDING_PAYMENT";
1225
- products: [{
1226
- id: string;
1227
- name: string;
1228
- description: string | null;
1229
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1230
- prices: {
1231
- priceAmount: number | null;
1232
- id: string;
1233
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1234
- minimumAmount: number | null;
1235
- maximumAmount: number | null;
1236
- presetAmount: number | null;
1237
- unitAmount: number | null;
1238
- capAmount: number | null;
1239
- meterId: string | null;
1240
- }[];
1241
- }, ...{
1242
- id: string;
1243
- name: string;
1244
- description: string | null;
1245
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1246
- prices: {
1247
- priceAmount: number | null;
1248
- id: string;
1249
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1250
- minimumAmount: number | null;
1251
- maximumAmount: number | null;
1252
- presetAmount: number | null;
1253
- unitAmount: number | null;
1254
- capAmount: number | null;
1255
- meterId: string | null;
1256
- }[];
1257
- }[]];
1258
- successUrl: string | null;
1259
- allowDiscountCodes: boolean;
1260
- customerName: string | null;
1261
- customerEmail: string | null;
1262
- customerIpAddress: string | null;
1263
- customerExternalId: string | null;
1264
- requireCustomerFields: {
1265
- customerName?: boolean | undefined;
1266
- customerEmail?: boolean | undefined;
1267
- } | null;
1268
- invoice: {
1269
- currency: string;
1270
- invoice: string;
1271
- paymentHash: string;
1272
- amountSats: number;
1273
- expiresAt: Date;
1274
- btcPrice: number;
1275
- amountSatsReceived: number | null;
1276
- fiatAmount: number;
1277
- };
1278
- id: string;
1279
- createdAt: Date;
1280
- clientSecret: string;
1281
- organizationId: string;
1282
- expiresAt: Date;
1283
- userMetadata: Record<string, any> | null;
1284
- customFieldData: Record<string, any> | null;
1285
- customerMetadata: Record<string, any> | null;
1286
- customerId: string | null;
1287
- customerBillingAddress: Record<string, any> | null;
1288
- providedAmount: number | null;
1289
- totalAmount: number;
1290
- discountAmount: number;
1291
- netAmount: number;
1292
- taxAmount: number;
1293
- invoiceAmountSats: number;
1294
- invoiceScid: string | null;
1295
- btcPrice: number;
1296
- } | {
1297
- currency: string;
1298
- type: "AMOUNT";
1299
- status: "PENDING_PAYMENT";
1300
- products: {
1301
- id: string;
1302
- name: string;
1303
- description: string | null;
1304
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1305
- prices: {
1306
- priceAmount: number | null;
1307
- id: string;
1308
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1309
- minimumAmount: number | null;
1310
- maximumAmount: number | null;
1311
- presetAmount: number | null;
1312
- unitAmount: number | null;
1313
- capAmount: number | null;
1314
- meterId: string | null;
1315
- }[];
1316
- }[] | null;
1317
- successUrl: string | null;
1318
- allowDiscountCodes: boolean;
1319
- customerName: string | null;
1320
- customerEmail: string | null;
1321
- customerIpAddress: string | null;
1322
- customerExternalId: string | null;
1323
- requireCustomerFields: {
1324
- customerName?: boolean | undefined;
1325
- customerEmail?: boolean | undefined;
1326
- } | null;
1327
- invoice: {
1328
- currency: string;
1329
- invoice: string;
1330
- paymentHash: string;
1331
- amountSats: number;
1332
- expiresAt: Date;
1333
- btcPrice: number;
1334
- amountSatsReceived: number | null;
1335
- fiatAmount: number;
1336
- };
1337
- id: string;
1338
- createdAt: Date;
1339
- clientSecret: string;
1340
- organizationId: string;
1341
- expiresAt: Date;
1342
- userMetadata: Record<string, any> | null;
1343
- customFieldData: Record<string, any> | null;
1344
- customerMetadata: Record<string, any> | null;
1345
- customerId: string | null;
1346
- customerBillingAddress: Record<string, any> | null;
1347
- providedAmount: number;
1348
- totalAmount: number;
1349
- discountAmount: number;
1350
- netAmount: number;
1351
- taxAmount: number;
1352
- invoiceAmountSats: number;
1353
- invoiceScid: string | null;
1354
- btcPrice: number;
1355
- } | {
1356
- currency: string;
1357
- type: "TOP_UP";
1358
- status: "PENDING_PAYMENT";
1359
- products: {
1360
- id: string;
1361
- name: string;
1362
- description: string | null;
1363
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1364
- prices: {
1365
- priceAmount: number | null;
1366
- id: string;
1367
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1368
- minimumAmount: number | null;
1369
- maximumAmount: number | null;
1370
- presetAmount: number | null;
1371
- unitAmount: number | null;
1372
- capAmount: number | null;
1373
- meterId: string | null;
1374
- }[];
1375
- }[] | null;
1376
- successUrl: string | null;
1377
- allowDiscountCodes: boolean;
1378
- customerName: string | null;
1379
- customerEmail: string | null;
1380
- customerIpAddress: string | null;
1381
- customerExternalId: string | null;
1382
- requireCustomerFields: {
1383
- customerName?: boolean | undefined;
1384
- customerEmail?: boolean | undefined;
1385
- } | null;
1386
- invoice: {
1387
- currency: string;
1388
- invoice: string;
1389
- paymentHash: string;
1390
- amountSats: number | null;
1391
- expiresAt: Date;
1392
- btcPrice: number | null;
1393
- amountSatsReceived: number | null;
1394
- fiatAmount: number | null;
1395
- };
1396
- id: string;
1397
- createdAt: Date;
1398
- clientSecret: string;
1399
- organizationId: string;
1400
- expiresAt: Date;
1401
- userMetadata: Record<string, any> | null;
1402
- customFieldData: Record<string, any> | null;
1403
- customerMetadata: Record<string, any> | null;
1404
- customerId: string | null;
1405
- customerBillingAddress: Record<string, any> | null;
1406
- providedAmount: number | null;
1407
- totalAmount: number | null;
1408
- discountAmount: number | null;
1409
- netAmount: number | null;
1410
- taxAmount: number | null;
1411
- invoiceAmountSats: number | null;
1412
- invoiceScid: string | null;
1413
- btcPrice: number | null;
1414
- } | {
1415
- currency: string;
1416
- type: "PRODUCTS";
1417
- status: "PAYMENT_RECEIVED";
1418
- products: [{
1419
- id: string;
1420
- name: string;
1421
- description: string | null;
1422
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1423
- prices: {
1424
- priceAmount: number | null;
1425
- id: string;
1426
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1427
- minimumAmount: number | null;
1428
- maximumAmount: number | null;
1429
- presetAmount: number | null;
1430
- unitAmount: number | null;
1431
- capAmount: number | null;
1432
- meterId: string | null;
1433
- }[];
1434
- }, ...{
1435
- id: string;
1436
- name: string;
1437
- description: string | null;
1438
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1439
- prices: {
1440
- priceAmount: number | null;
1441
- id: string;
1442
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1443
- minimumAmount: number | null;
1444
- maximumAmount: number | null;
1445
- presetAmount: number | null;
1446
- unitAmount: number | null;
1447
- capAmount: number | null;
1448
- meterId: string | null;
1449
- }[];
1450
- }[]];
1451
- successUrl: string | null;
1452
- allowDiscountCodes: boolean;
1453
- customerName: string | null;
1454
- customerEmail: string | null;
1455
- customerIpAddress: string | null;
1456
- customerExternalId: string | null;
1457
- requireCustomerFields: {
1458
- customerName?: boolean | undefined;
1459
- customerEmail?: boolean | undefined;
1460
- } | null;
1461
- invoice: {
1462
- currency: string;
1463
- invoice: string;
1464
- paymentHash: string;
1465
- amountSats: number;
1466
- expiresAt: Date;
1467
- btcPrice: number;
1468
- amountSatsReceived: number;
1469
- fiatAmount: number;
1470
- };
1471
- id: string;
1472
- createdAt: Date;
1473
- clientSecret: string;
1474
- organizationId: string;
1475
- expiresAt: Date;
1476
- userMetadata: Record<string, any> | null;
1477
- customFieldData: Record<string, any> | null;
1478
- customerMetadata: Record<string, any> | null;
1479
- customerId: string | null;
1480
- customerBillingAddress: Record<string, any> | null;
1481
- providedAmount: number | null;
1482
- totalAmount: number;
1483
- discountAmount: number;
1484
- netAmount: number;
1485
- taxAmount: number;
1486
- invoiceAmountSats: number;
1487
- invoiceScid: string | null;
1488
- btcPrice: number;
1489
- } | {
1490
- currency: string;
1491
- type: "AMOUNT";
1492
- status: "PAYMENT_RECEIVED";
1493
- products: {
1494
- id: string;
1495
- name: string;
1496
- description: string | null;
1497
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1498
- prices: {
1499
- priceAmount: number | null;
1500
- id: string;
1501
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1502
- minimumAmount: number | null;
1503
- maximumAmount: number | null;
1504
- presetAmount: number | null;
1505
- unitAmount: number | null;
1506
- capAmount: number | null;
1507
- meterId: string | null;
1508
- }[];
1509
- }[] | null;
1510
- successUrl: string | null;
1511
- allowDiscountCodes: boolean;
1512
- customerName: string | null;
1513
- customerEmail: string | null;
1514
- customerIpAddress: string | null;
1515
- customerExternalId: string | null;
1516
- requireCustomerFields: {
1517
- customerName?: boolean | undefined;
1518
- customerEmail?: boolean | undefined;
1519
- } | null;
1520
- invoice: {
1521
- currency: string;
1522
- invoice: string;
1523
- paymentHash: string;
1524
- amountSats: number;
1525
- expiresAt: Date;
1526
- btcPrice: number;
1527
- amountSatsReceived: number;
1528
- fiatAmount: number;
1529
- };
1530
- id: string;
1531
- createdAt: Date;
1532
- clientSecret: string;
1533
- organizationId: string;
1534
- expiresAt: Date;
1535
- userMetadata: Record<string, any> | null;
1536
- customFieldData: Record<string, any> | null;
1537
- customerMetadata: Record<string, any> | null;
1538
- customerId: string | null;
1539
- customerBillingAddress: Record<string, any> | null;
1540
- providedAmount: number;
1541
- totalAmount: number;
1542
- discountAmount: number;
1543
- netAmount: number;
1544
- taxAmount: number;
1545
- invoiceAmountSats: number;
1546
- invoiceScid: string | null;
1547
- btcPrice: number;
1548
- } | {
1549
- currency: string;
1550
- type: "TOP_UP";
1551
- status: "PAYMENT_RECEIVED";
1552
- products: {
1553
- id: string;
1554
- name: string;
1555
- description: string | null;
1556
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1557
- prices: {
1558
- priceAmount: number | null;
1559
- id: string;
1560
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1561
- minimumAmount: number | null;
1562
- maximumAmount: number | null;
1563
- presetAmount: number | null;
1564
- unitAmount: number | null;
1565
- capAmount: number | null;
1566
- meterId: string | null;
1567
- }[];
1568
- }[] | null;
1569
- successUrl: string | null;
1570
- allowDiscountCodes: boolean;
1571
- customerName: string | null;
1572
- customerEmail: string | null;
1573
- customerIpAddress: string | null;
1574
- customerExternalId: string | null;
1575
- requireCustomerFields: {
1576
- customerName?: boolean | undefined;
1577
- customerEmail?: boolean | undefined;
1578
- } | null;
1579
- invoice: {
1580
- currency: string;
1581
- invoice: string;
1582
- paymentHash: string;
1583
- amountSats: number;
1584
- expiresAt: Date;
1585
- btcPrice: number;
1586
- amountSatsReceived: number;
1587
- fiatAmount: number;
1588
- };
1589
- id: string;
1590
- createdAt: Date;
1591
- clientSecret: string;
1592
- organizationId: string;
1593
- expiresAt: Date;
1594
- userMetadata: Record<string, any> | null;
1595
- customFieldData: Record<string, any> | null;
1596
- customerMetadata: Record<string, any> | null;
1597
- customerId: string | null;
1598
- customerBillingAddress: Record<string, any> | null;
1599
- providedAmount: number | null;
1600
- totalAmount: number;
1601
- discountAmount: number;
1602
- netAmount: number;
1603
- taxAmount: number;
1604
- invoiceAmountSats: number;
1605
- invoiceScid: string | null;
1606
- btcPrice: number;
1607
- } | {
1608
- currency: string;
1609
- type: "PRODUCTS" | "AMOUNT" | "TOP_UP";
1610
- status: "EXPIRED";
1611
- products: {
1612
- id: string;
1613
- name: string;
1614
- description: string | null;
1615
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1616
- prices: {
1617
- priceAmount: number | null;
1618
- id: string;
1619
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1620
- minimumAmount: number | null;
1621
- maximumAmount: number | null;
1622
- presetAmount: number | null;
1623
- unitAmount: number | null;
1624
- capAmount: number | null;
1625
- meterId: string | null;
1626
- }[];
1627
- }[] | null;
1628
- successUrl: string | null;
1629
- allowDiscountCodes: boolean;
1630
- customerName: string | null;
1631
- customerEmail: string | null;
1632
- customerIpAddress: string | null;
1633
- customerExternalId: string | null;
1634
- requireCustomerFields: {
1635
- customerName?: boolean | undefined;
1636
- customerEmail?: boolean | undefined;
1637
- } | null;
1638
- invoice: {
1639
- currency: string;
1640
- invoice: string;
1641
- paymentHash: string;
1642
- amountSats: number | null;
1643
- expiresAt: Date;
1644
- btcPrice: number | null;
1645
- amountSatsReceived: number | null;
1646
- fiatAmount: number | null;
1647
- } | null;
1648
- id: string;
1649
- createdAt: Date;
1650
- clientSecret: string;
1651
- organizationId: string;
1652
- expiresAt: Date;
1653
- userMetadata: Record<string, any> | null;
1654
- customFieldData: Record<string, any> | null;
1655
- customerMetadata: Record<string, any> | null;
1656
- customerId: string | null;
1657
- customerBillingAddress: Record<string, any> | null;
1658
- providedAmount: number | null;
1659
- totalAmount: number | null;
1660
- discountAmount: number | null;
1661
- netAmount: number | null;
1662
- taxAmount: number | null;
1663
- invoiceAmountSats: number | null;
1664
- invoiceScid: string | null;
1665
- btcPrice: number | null;
1666
- }>;
1667
- export declare function createCheckout(...args: Parameters<typeof createCheckoutImpl>): Promise<{
1668
- currency: string;
1669
- type: "PRODUCTS";
1670
- status: "UNCONFIRMED";
1671
- products: [{
1672
- id: string;
1673
- name: string;
1674
- description: string | null;
1675
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1676
- prices: {
1677
- priceAmount: number | null;
1678
- id: string;
1679
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1680
- minimumAmount: number | null;
1681
- maximumAmount: number | null;
1682
- presetAmount: number | null;
1683
- unitAmount: number | null;
1684
- capAmount: number | null;
1685
- meterId: string | null;
1686
- }[];
1687
- }, ...{
1688
- id: string;
1689
- name: string;
1690
- description: string | null;
1691
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1692
- prices: {
1693
- priceAmount: number | null;
1694
- id: string;
1695
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1696
- minimumAmount: number | null;
1697
- maximumAmount: number | null;
1698
- presetAmount: number | null;
1699
- unitAmount: number | null;
1700
- capAmount: number | null;
1701
- meterId: string | null;
1702
- }[];
1703
- }[]];
1704
- successUrl: string | null;
1705
- allowDiscountCodes: boolean;
1706
- customerName: string | null;
1707
- customerEmail: string | null;
1708
- customerIpAddress: string | null;
1709
- customerExternalId: string | null;
1710
- requireCustomerFields: {
1711
- customerName?: boolean | undefined;
1712
- customerEmail?: boolean | undefined;
1713
- } | null;
1714
- invoice: {
1715
- currency: string;
1716
- invoice: string;
1717
- paymentHash: string;
1718
- amountSats: number | null;
1719
- expiresAt: Date;
1720
- btcPrice: number | null;
1721
- amountSatsReceived: number | null;
1722
- fiatAmount: number | null;
1723
- } | null;
1724
- id: string;
1725
- createdAt: Date;
1726
- clientSecret: string;
1727
- organizationId: string;
1728
- expiresAt: Date;
1729
- userMetadata: Record<string, any> | null;
1730
- customFieldData: Record<string, any> | null;
1731
- customerMetadata: Record<string, any> | null;
1732
- customerId: string | null;
1733
- customerBillingAddress: Record<string, any> | null;
1734
- providedAmount: number | null;
1735
- totalAmount: number | null;
1736
- discountAmount: number | null;
1737
- netAmount: number | null;
1738
- taxAmount: number | null;
1739
- invoiceAmountSats: number | null;
1740
- invoiceScid: string | null;
1741
- btcPrice: number | null;
1742
- } | {
1743
- currency: string;
1744
- type: "AMOUNT";
1745
- status: "UNCONFIRMED";
1746
- products: {
1747
- id: string;
1748
- name: string;
1749
- description: string | null;
1750
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1751
- prices: {
1752
- priceAmount: number | null;
1753
- id: string;
1754
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1755
- minimumAmount: number | null;
1756
- maximumAmount: number | null;
1757
- presetAmount: number | null;
1758
- unitAmount: number | null;
1759
- capAmount: number | null;
1760
- meterId: string | null;
1761
- }[];
1762
- }[] | null;
1763
- successUrl: string | null;
1764
- allowDiscountCodes: boolean;
1765
- customerName: string | null;
1766
- customerEmail: string | null;
1767
- customerIpAddress: string | null;
1768
- customerExternalId: string | null;
1769
- requireCustomerFields: {
1770
- customerName?: boolean | undefined;
1771
- customerEmail?: boolean | undefined;
1772
- } | null;
1773
- invoice: {
1774
- currency: string;
1775
- invoice: string;
1776
- paymentHash: string;
1777
- amountSats: number | null;
1778
- expiresAt: Date;
1779
- btcPrice: number | null;
1780
- amountSatsReceived: number | null;
1781
- fiatAmount: number | null;
1782
- } | null;
1783
- id: string;
1784
- createdAt: Date;
1785
- clientSecret: string;
1786
- organizationId: string;
1787
- expiresAt: Date;
1788
- userMetadata: Record<string, any> | null;
1789
- customFieldData: Record<string, any> | null;
1790
- customerMetadata: Record<string, any> | null;
1791
- customerId: string | null;
1792
- customerBillingAddress: Record<string, any> | null;
1793
- providedAmount: number;
1794
- totalAmount: number | null;
1795
- discountAmount: number | null;
1796
- netAmount: number | null;
1797
- taxAmount: number | null;
1798
- invoiceAmountSats: number | null;
1799
- invoiceScid: string | null;
1800
- btcPrice: number | null;
1801
- } | {
1802
- currency: string;
1803
- type: "TOP_UP";
1804
- status: "UNCONFIRMED";
1805
- products: {
1806
- id: string;
1807
- name: string;
1808
- description: string | null;
1809
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1810
- prices: {
1811
- priceAmount: number | null;
1812
- id: string;
1813
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1814
- minimumAmount: number | null;
1815
- maximumAmount: number | null;
1816
- presetAmount: number | null;
1817
- unitAmount: number | null;
1818
- capAmount: number | null;
1819
- meterId: string | null;
1820
- }[];
1821
- }[] | null;
1822
- successUrl: string | null;
1823
- allowDiscountCodes: boolean;
1824
- customerName: string | null;
1825
- customerEmail: string | null;
1826
- customerIpAddress: string | null;
1827
- customerExternalId: string | null;
1828
- requireCustomerFields: {
1829
- customerName?: boolean | undefined;
1830
- customerEmail?: boolean | undefined;
1831
- } | null;
1832
- invoice: {
1833
- currency: string;
1834
- invoice: string;
1835
- paymentHash: string;
1836
- amountSats: number | null;
1837
- expiresAt: Date;
1838
- btcPrice: number | null;
1839
- amountSatsReceived: number | null;
1840
- fiatAmount: number | null;
1841
- } | null;
1842
- id: string;
1843
- createdAt: Date;
1844
- clientSecret: string;
1845
- organizationId: string;
1846
- expiresAt: Date;
1847
- userMetadata: Record<string, any> | null;
1848
- customFieldData: Record<string, any> | null;
1849
- customerMetadata: Record<string, any> | null;
1850
- customerId: string | null;
1851
- customerBillingAddress: Record<string, any> | null;
1852
- providedAmount: number | null;
1853
- totalAmount: number | null;
1854
- discountAmount: number | null;
1855
- netAmount: number | null;
1856
- taxAmount: number | null;
1857
- invoiceAmountSats: number | null;
1858
- invoiceScid: string | null;
1859
- btcPrice: number | null;
1860
- } | {
1861
- currency: string;
1862
- type: "PRODUCTS";
1863
- status: "PENDING_PAYMENT";
1864
- products: [{
1865
- id: string;
1866
- name: string;
1867
- description: string | null;
1868
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1869
- prices: {
1870
- priceAmount: number | null;
1871
- id: string;
1872
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1873
- minimumAmount: number | null;
1874
- maximumAmount: number | null;
1875
- presetAmount: number | null;
1876
- unitAmount: number | null;
1877
- capAmount: number | null;
1878
- meterId: string | null;
1879
- }[];
1880
- }, ...{
1881
- id: string;
1882
- name: string;
1883
- description: string | null;
1884
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1885
- prices: {
1886
- priceAmount: number | null;
1887
- id: string;
1888
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1889
- minimumAmount: number | null;
1890
- maximumAmount: number | null;
1891
- presetAmount: number | null;
1892
- unitAmount: number | null;
1893
- capAmount: number | null;
1894
- meterId: string | null;
1895
- }[];
1896
- }[]];
1897
- successUrl: string | null;
1898
- allowDiscountCodes: boolean;
1899
- customerName: string | null;
1900
- customerEmail: string | null;
1901
- customerIpAddress: string | null;
1902
- customerExternalId: string | null;
1903
- requireCustomerFields: {
1904
- customerName?: boolean | undefined;
1905
- customerEmail?: boolean | undefined;
1906
- } | null;
1907
- invoice: {
1908
- currency: string;
1909
- invoice: string;
1910
- paymentHash: string;
1911
- amountSats: number;
1912
- expiresAt: Date;
1913
- btcPrice: number;
1914
- amountSatsReceived: number | null;
1915
- fiatAmount: number;
1916
- };
1917
- id: string;
1918
- createdAt: Date;
1919
- clientSecret: string;
1920
- organizationId: string;
1921
- expiresAt: Date;
1922
- userMetadata: Record<string, any> | null;
1923
- customFieldData: Record<string, any> | null;
1924
- customerMetadata: Record<string, any> | null;
1925
- customerId: string | null;
1926
- customerBillingAddress: Record<string, any> | null;
1927
- providedAmount: number | null;
1928
- totalAmount: number;
1929
- discountAmount: number;
1930
- netAmount: number;
1931
- taxAmount: number;
1932
- invoiceAmountSats: number;
1933
- invoiceScid: string | null;
1934
- btcPrice: number;
1935
- } | {
1936
- currency: string;
1937
- type: "AMOUNT";
1938
- status: "PENDING_PAYMENT";
1939
- products: {
1940
- id: string;
1941
- name: string;
1942
- description: string | null;
1943
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
1944
- prices: {
1945
- priceAmount: number | null;
1946
- id: string;
1947
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
1948
- minimumAmount: number | null;
1949
- maximumAmount: number | null;
1950
- presetAmount: number | null;
1951
- unitAmount: number | null;
1952
- capAmount: number | null;
1953
- meterId: string | null;
1954
- }[];
1955
- }[] | null;
1956
- successUrl: string | null;
1957
- allowDiscountCodes: boolean;
1958
- customerName: string | null;
1959
- customerEmail: string | null;
1960
- customerIpAddress: string | null;
1961
- customerExternalId: string | null;
1962
- requireCustomerFields: {
1963
- customerName?: boolean | undefined;
1964
- customerEmail?: boolean | undefined;
1965
- } | null;
1966
- invoice: {
1967
- currency: string;
1968
- invoice: string;
1969
- paymentHash: string;
1970
- amountSats: number;
1971
- expiresAt: Date;
1972
- btcPrice: number;
1973
- amountSatsReceived: number | null;
1974
- fiatAmount: number;
1975
- };
1976
- id: string;
1977
- createdAt: Date;
1978
- clientSecret: string;
1979
- organizationId: string;
1980
- expiresAt: Date;
1981
- userMetadata: Record<string, any> | null;
1982
- customFieldData: Record<string, any> | null;
1983
- customerMetadata: Record<string, any> | null;
1984
- customerId: string | null;
1985
- customerBillingAddress: Record<string, any> | null;
1986
- providedAmount: number;
1987
- totalAmount: number;
1988
- discountAmount: number;
1989
- netAmount: number;
1990
- taxAmount: number;
1991
- invoiceAmountSats: number;
1992
- invoiceScid: string | null;
1993
- btcPrice: number;
1994
- } | {
1995
- currency: string;
1996
- type: "TOP_UP";
1997
- status: "PENDING_PAYMENT";
1998
- products: {
1999
- id: string;
2000
- name: string;
2001
- description: string | null;
2002
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2003
- prices: {
2004
- priceAmount: number | null;
2005
- id: string;
2006
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2007
- minimumAmount: number | null;
2008
- maximumAmount: number | null;
2009
- presetAmount: number | null;
2010
- unitAmount: number | null;
2011
- capAmount: number | null;
2012
- meterId: string | null;
2013
- }[];
2014
- }[] | null;
2015
- successUrl: string | null;
2016
- allowDiscountCodes: boolean;
2017
- customerName: string | null;
2018
- customerEmail: string | null;
2019
- customerIpAddress: string | null;
2020
- customerExternalId: string | null;
2021
- requireCustomerFields: {
2022
- customerName?: boolean | undefined;
2023
- customerEmail?: boolean | undefined;
2024
- } | null;
2025
- invoice: {
2026
- currency: string;
2027
- invoice: string;
2028
- paymentHash: string;
2029
- amountSats: number | null;
2030
- expiresAt: Date;
2031
- btcPrice: number | null;
2032
- amountSatsReceived: number | null;
2033
- fiatAmount: number | null;
2034
- };
2035
- id: string;
2036
- createdAt: Date;
2037
- clientSecret: string;
2038
- organizationId: string;
2039
- expiresAt: Date;
2040
- userMetadata: Record<string, any> | null;
2041
- customFieldData: Record<string, any> | null;
2042
- customerMetadata: Record<string, any> | null;
2043
- customerId: string | null;
2044
- customerBillingAddress: Record<string, any> | null;
2045
- providedAmount: number | null;
2046
- totalAmount: number | null;
2047
- discountAmount: number | null;
2048
- netAmount: number | null;
2049
- taxAmount: number | null;
2050
- invoiceAmountSats: number | null;
2051
- invoiceScid: string | null;
2052
- btcPrice: number | null;
2053
- } | {
2054
- currency: string;
2055
- type: "PRODUCTS";
2056
- status: "PAYMENT_RECEIVED";
2057
- products: [{
2058
- id: string;
2059
- name: string;
2060
- description: string | null;
2061
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2062
- prices: {
2063
- priceAmount: number | null;
2064
- id: string;
2065
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2066
- minimumAmount: number | null;
2067
- maximumAmount: number | null;
2068
- presetAmount: number | null;
2069
- unitAmount: number | null;
2070
- capAmount: number | null;
2071
- meterId: string | null;
2072
- }[];
2073
- }, ...{
2074
- id: string;
2075
- name: string;
2076
- description: string | null;
2077
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2078
- prices: {
2079
- priceAmount: number | null;
2080
- id: string;
2081
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2082
- minimumAmount: number | null;
2083
- maximumAmount: number | null;
2084
- presetAmount: number | null;
2085
- unitAmount: number | null;
2086
- capAmount: number | null;
2087
- meterId: string | null;
2088
- }[];
2089
- }[]];
2090
- successUrl: string | null;
2091
- allowDiscountCodes: boolean;
2092
- customerName: string | null;
2093
- customerEmail: string | null;
2094
- customerIpAddress: string | null;
2095
- customerExternalId: string | null;
2096
- requireCustomerFields: {
2097
- customerName?: boolean | undefined;
2098
- customerEmail?: boolean | undefined;
2099
- } | null;
2100
- invoice: {
2101
- currency: string;
2102
- invoice: string;
2103
- paymentHash: string;
2104
- amountSats: number;
2105
- expiresAt: Date;
2106
- btcPrice: number;
2107
- amountSatsReceived: number;
2108
- fiatAmount: number;
2109
- };
2110
- id: string;
2111
- createdAt: Date;
2112
- clientSecret: string;
2113
- organizationId: string;
2114
- expiresAt: Date;
2115
- userMetadata: Record<string, any> | null;
2116
- customFieldData: Record<string, any> | null;
2117
- customerMetadata: Record<string, any> | null;
2118
- customerId: string | null;
2119
- customerBillingAddress: Record<string, any> | null;
2120
- providedAmount: number | null;
2121
- totalAmount: number;
2122
- discountAmount: number;
2123
- netAmount: number;
2124
- taxAmount: number;
2125
- invoiceAmountSats: number;
2126
- invoiceScid: string | null;
2127
- btcPrice: number;
2128
- } | {
2129
- currency: string;
2130
- type: "AMOUNT";
2131
- status: "PAYMENT_RECEIVED";
2132
- products: {
2133
- id: string;
2134
- name: string;
2135
- description: string | null;
2136
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2137
- prices: {
2138
- priceAmount: number | null;
2139
- id: string;
2140
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2141
- minimumAmount: number | null;
2142
- maximumAmount: number | null;
2143
- presetAmount: number | null;
2144
- unitAmount: number | null;
2145
- capAmount: number | null;
2146
- meterId: string | null;
2147
- }[];
2148
- }[] | null;
2149
- successUrl: string | null;
2150
- allowDiscountCodes: boolean;
2151
- customerName: string | null;
2152
- customerEmail: string | null;
2153
- customerIpAddress: string | null;
2154
- customerExternalId: string | null;
2155
- requireCustomerFields: {
2156
- customerName?: boolean | undefined;
2157
- customerEmail?: boolean | undefined;
2158
- } | null;
2159
- invoice: {
2160
- currency: string;
2161
- invoice: string;
2162
- paymentHash: string;
2163
- amountSats: number;
2164
- expiresAt: Date;
2165
- btcPrice: number;
2166
- amountSatsReceived: number;
2167
- fiatAmount: number;
2168
- };
2169
- id: string;
2170
- createdAt: Date;
2171
- clientSecret: string;
2172
- organizationId: string;
2173
- expiresAt: Date;
2174
- userMetadata: Record<string, any> | null;
2175
- customFieldData: Record<string, any> | null;
2176
- customerMetadata: Record<string, any> | null;
2177
- customerId: string | null;
2178
- customerBillingAddress: Record<string, any> | null;
2179
- providedAmount: number;
2180
- totalAmount: number;
2181
- discountAmount: number;
2182
- netAmount: number;
2183
- taxAmount: number;
2184
- invoiceAmountSats: number;
2185
- invoiceScid: string | null;
2186
- btcPrice: number;
2187
- } | {
2188
- currency: string;
2189
- type: "TOP_UP";
2190
- status: "PAYMENT_RECEIVED";
2191
- products: {
2192
- id: string;
2193
- name: string;
2194
- description: string | null;
2195
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2196
- prices: {
2197
- priceAmount: number | null;
2198
- id: string;
2199
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2200
- minimumAmount: number | null;
2201
- maximumAmount: number | null;
2202
- presetAmount: number | null;
2203
- unitAmount: number | null;
2204
- capAmount: number | null;
2205
- meterId: string | null;
2206
- }[];
2207
- }[] | null;
2208
- successUrl: string | null;
2209
- allowDiscountCodes: boolean;
2210
- customerName: string | null;
2211
- customerEmail: string | null;
2212
- customerIpAddress: string | null;
2213
- customerExternalId: string | null;
2214
- requireCustomerFields: {
2215
- customerName?: boolean | undefined;
2216
- customerEmail?: boolean | undefined;
2217
- } | null;
2218
- invoice: {
2219
- currency: string;
2220
- invoice: string;
2221
- paymentHash: string;
2222
- amountSats: number;
2223
- expiresAt: Date;
2224
- btcPrice: number;
2225
- amountSatsReceived: number;
2226
- fiatAmount: number;
2227
- };
2228
- id: string;
2229
- createdAt: Date;
2230
- clientSecret: string;
2231
- organizationId: string;
2232
- expiresAt: Date;
2233
- userMetadata: Record<string, any> | null;
2234
- customFieldData: Record<string, any> | null;
2235
- customerMetadata: Record<string, any> | null;
2236
- customerId: string | null;
2237
- customerBillingAddress: Record<string, any> | null;
2238
- providedAmount: number | null;
2239
- totalAmount: number;
2240
- discountAmount: number;
2241
- netAmount: number;
2242
- taxAmount: number;
2243
- invoiceAmountSats: number;
2244
- invoiceScid: string | null;
2245
- btcPrice: number;
2246
- } | {
2247
- currency: string;
2248
- type: "PRODUCTS" | "AMOUNT" | "TOP_UP";
2249
- status: "EXPIRED";
2250
- products: {
2251
- id: string;
2252
- name: string;
2253
- description: string | null;
2254
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2255
- prices: {
2256
- priceAmount: number | null;
2257
- id: string;
2258
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2259
- minimumAmount: number | null;
2260
- maximumAmount: number | null;
2261
- presetAmount: number | null;
2262
- unitAmount: number | null;
2263
- capAmount: number | null;
2264
- meterId: string | null;
2265
- }[];
2266
- }[] | null;
2267
- successUrl: string | null;
2268
- allowDiscountCodes: boolean;
2269
- customerName: string | null;
2270
- customerEmail: string | null;
2271
- customerIpAddress: string | null;
2272
- customerExternalId: string | null;
2273
- requireCustomerFields: {
2274
- customerName?: boolean | undefined;
2275
- customerEmail?: boolean | undefined;
2276
- } | null;
2277
- invoice: {
2278
- currency: string;
2279
- invoice: string;
2280
- paymentHash: string;
2281
- amountSats: number | null;
2282
- expiresAt: Date;
2283
- btcPrice: number | null;
2284
- amountSatsReceived: number | null;
2285
- fiatAmount: number | null;
2286
- } | null;
2287
- id: string;
2288
- createdAt: Date;
2289
- clientSecret: string;
2290
- organizationId: string;
2291
- expiresAt: Date;
2292
- userMetadata: Record<string, any> | null;
2293
- customFieldData: Record<string, any> | null;
2294
- customerMetadata: Record<string, any> | null;
2295
- customerId: string | null;
2296
- customerBillingAddress: Record<string, any> | null;
2297
- providedAmount: number | null;
2298
- totalAmount: number | null;
2299
- discountAmount: number | null;
2300
- netAmount: number | null;
2301
- taxAmount: number | null;
2302
- invoiceAmountSats: number | null;
2303
- invoiceScid: string | null;
2304
- btcPrice: number | null;
2305
- } | {
2306
- currency: string;
2307
- type: "PRODUCTS";
2308
- status: "CONFIRMED";
2309
- products: [{
2310
- id: string;
2311
- name: string;
2312
- description: string | null;
2313
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2314
- prices: {
2315
- priceAmount: number | null;
2316
- id: string;
2317
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2318
- minimumAmount: number | null;
2319
- maximumAmount: number | null;
2320
- presetAmount: number | null;
2321
- unitAmount: number | null;
2322
- capAmount: number | null;
2323
- meterId: string | null;
2324
- }[];
2325
- }, ...{
2326
- id: string;
2327
- name: string;
2328
- description: string | null;
2329
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2330
- prices: {
2331
- priceAmount: number | null;
2332
- id: string;
2333
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2334
- minimumAmount: number | null;
2335
- maximumAmount: number | null;
2336
- presetAmount: number | null;
2337
- unitAmount: number | null;
2338
- capAmount: number | null;
2339
- meterId: string | null;
2340
- }[];
2341
- }[]];
2342
- successUrl: string | null;
2343
- allowDiscountCodes: boolean;
2344
- customerName: string | null;
2345
- customerEmail: string | null;
2346
- customerIpAddress: string | null;
2347
- customerExternalId: string | null;
2348
- requireCustomerFields: {
2349
- customerName?: boolean | undefined;
2350
- customerEmail?: boolean | undefined;
2351
- } | null;
2352
- invoice: {
2353
- currency: string;
2354
- invoice: string;
2355
- paymentHash: string;
2356
- amountSats: number | null;
2357
- expiresAt: Date;
2358
- btcPrice: number | null;
2359
- amountSatsReceived: number | null;
2360
- fiatAmount: number | null;
2361
- } | null;
2362
- id: string;
2363
- createdAt: Date;
2364
- clientSecret: string;
2365
- organizationId: string;
2366
- expiresAt: Date;
2367
- userMetadata: Record<string, any> | null;
2368
- customFieldData: Record<string, any> | null;
2369
- customerMetadata: Record<string, any> | null;
2370
- customerId: string | null;
2371
- customerBillingAddress: Record<string, any> | null;
2372
- providedAmount: number | null;
2373
- totalAmount: number;
2374
- discountAmount: number;
2375
- netAmount: number;
2376
- taxAmount: number;
2377
- invoiceAmountSats: number;
2378
- invoiceScid: string | null;
2379
- btcPrice: number;
2380
- } | {
2381
- currency: string;
2382
- type: "AMOUNT";
2383
- status: "CONFIRMED";
2384
- products: {
2385
- id: string;
2386
- name: string;
2387
- description: string | null;
2388
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2389
- prices: {
2390
- priceAmount: number | null;
2391
- id: string;
2392
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2393
- minimumAmount: number | null;
2394
- maximumAmount: number | null;
2395
- presetAmount: number | null;
2396
- unitAmount: number | null;
2397
- capAmount: number | null;
2398
- meterId: string | null;
2399
- }[];
2400
- }[] | null;
2401
- successUrl: string | null;
2402
- allowDiscountCodes: boolean;
2403
- customerName: string | null;
2404
- customerEmail: string | null;
2405
- customerIpAddress: string | null;
2406
- customerExternalId: string | null;
2407
- requireCustomerFields: {
2408
- customerName?: boolean | undefined;
2409
- customerEmail?: boolean | undefined;
2410
- } | null;
2411
- invoice: {
2412
- currency: string;
2413
- invoice: string;
2414
- paymentHash: string;
2415
- amountSats: number | null;
2416
- expiresAt: Date;
2417
- btcPrice: number | null;
2418
- amountSatsReceived: number | null;
2419
- fiatAmount: number | null;
2420
- } | null;
2421
- id: string;
2422
- createdAt: Date;
2423
- clientSecret: string;
2424
- organizationId: string;
2425
- expiresAt: Date;
2426
- userMetadata: Record<string, any> | null;
2427
- customFieldData: Record<string, any> | null;
2428
- customerMetadata: Record<string, any> | null;
2429
- customerId: string | null;
2430
- customerBillingAddress: Record<string, any> | null;
2431
- providedAmount: number;
2432
- totalAmount: number;
2433
- discountAmount: number;
2434
- netAmount: number;
2435
- taxAmount: number;
2436
- invoiceAmountSats: number;
2437
- invoiceScid: string | null;
2438
- btcPrice: number;
2439
- } | {
2440
- currency: string;
2441
- type: "TOP_UP";
2442
- status: "CONFIRMED";
2443
- products: {
2444
- id: string;
2445
- name: string;
2446
- description: string | null;
2447
- recurringInterval: "MONTH" | "QUARTER" | "YEAR" | null;
2448
- prices: {
2449
- priceAmount: number | null;
2450
- id: string;
2451
- amountType: "FIXED" | "CUSTOM" | "FREE" | "METERED";
2452
- minimumAmount: number | null;
2453
- maximumAmount: number | null;
2454
- presetAmount: number | null;
2455
- unitAmount: number | null;
2456
- capAmount: number | null;
2457
- meterId: string | null;
2458
- }[];
2459
- }[] | null;
2460
- successUrl: string | null;
2461
- allowDiscountCodes: boolean;
2462
- customerName: string | null;
2463
- customerEmail: string | null;
2464
- customerIpAddress: string | null;
2465
- customerExternalId: string | null;
2466
- requireCustomerFields: {
2467
- customerName?: boolean | undefined;
2468
- customerEmail?: boolean | undefined;
2469
- } | null;
2470
- invoice: {
2471
- currency: string;
2472
- invoice: string;
2473
- paymentHash: string;
2474
- amountSats: number | null;
2475
- expiresAt: Date;
2476
- btcPrice: number | null;
2477
- amountSatsReceived: number | null;
2478
- fiatAmount: number | null;
2479
- } | null;
2480
- id: string;
2481
- createdAt: Date;
2482
- clientSecret: string;
2483
- organizationId: string;
2484
- expiresAt: Date;
2485
- userMetadata: Record<string, any> | null;
2486
- customFieldData: Record<string, any> | null;
2487
- customerMetadata: Record<string, any> | null;
2488
- customerId: string | null;
2489
- customerBillingAddress: Record<string, any> | null;
2490
- providedAmount: number | null;
2491
- totalAmount: number | null;
2492
- discountAmount: number | null;
2493
- netAmount: number | null;
2494
- taxAmount: number | null;
2495
- invoiceAmountSats: number | null;
2496
- invoiceScid: string | null;
2497
- btcPrice: number | null;
2498
- }>;
2499
- export declare function payInvoice(...args: Parameters<typeof payInvoiceImpl>): Promise<{
2500
- ok: boolean;
2501
- }>;