@dodopayments/better-auth 1.3.2 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/chunk-52LQJCF4.js +199 -0
  2. package/dist/chunk-52LQJCF4.js.map +1 -0
  3. package/dist/chunk-FBAIEKOL.js +70 -0
  4. package/dist/chunk-FBAIEKOL.js.map +1 -0
  5. package/dist/chunk-PXI4EHZC.js +12 -0
  6. package/dist/chunk-PXI4EHZC.js.map +1 -0
  7. package/dist/chunk-QR7PLJJQ.js +13943 -0
  8. package/dist/chunk-QR7PLJJQ.js.map +1 -0
  9. package/dist/chunk-WIFOXVZ3.js +291 -0
  10. package/dist/chunk-WIFOXVZ3.js.map +1 -0
  11. package/dist/chunk-YK6XO66Y.js +84 -0
  12. package/dist/chunk-YK6XO66Y.js.map +1 -0
  13. package/dist/chunk-Z7VSWPPK.js +181 -0
  14. package/dist/chunk-Z7VSWPPK.js.map +1 -0
  15. package/dist/client.cjs +36 -0
  16. package/dist/client.cjs.map +1 -0
  17. package/dist/client.d.cts +7 -0
  18. package/dist/client.d.ts +7 -5
  19. package/dist/client.js +6 -5
  20. package/dist/client.js.map +1 -0
  21. package/dist/hooks/customer.cjs +14036 -0
  22. package/dist/hooks/customer.cjs.map +1 -0
  23. package/dist/hooks/customer.d.cts +11 -0
  24. package/dist/hooks/customer.d.ts +11 -4
  25. package/dist/hooks/customer.js +9 -62
  26. package/dist/hooks/customer.js.map +1 -0
  27. package/dist/index.cjs +14793 -0
  28. package/dist/index.cjs.map +1 -0
  29. package/dist/index.d.cts +797 -0
  30. package/dist/index.d.ts +205 -196
  31. package/dist/index.js +55 -34
  32. package/dist/index.js.map +1 -0
  33. package/dist/plugins/checkout.cjs +14424 -0
  34. package/dist/plugins/checkout.cjs.map +1 -0
  35. package/dist/plugins/checkout.d.cts +6 -0
  36. package/dist/plugins/checkout.d.ts +6 -548
  37. package/dist/plugins/checkout.js +8 -170
  38. package/dist/plugins/checkout.js.map +1 -0
  39. package/dist/plugins/portal.cjs +14446 -0
  40. package/dist/plugins/portal.cjs.map +1 -0
  41. package/dist/plugins/portal.d.cts +6 -0
  42. package/dist/plugins/portal.d.ts +6 -204
  43. package/dist/plugins/portal.js +8 -171
  44. package/dist/plugins/portal.js.map +1 -0
  45. package/dist/plugins/webhooks.cjs +14046 -0
  46. package/dist/plugins/webhooks.cjs.map +1 -0
  47. package/dist/plugins/webhooks.d.cts +6 -0
  48. package/dist/plugins/webhooks.d.ts +6 -41
  49. package/dist/plugins/webhooks.js +7 -61
  50. package/dist/plugins/webhooks.js.map +1 -0
  51. package/dist/types-CbotWcHh.d.cts +841 -0
  52. package/dist/types-CbotWcHh.d.ts +841 -0
  53. package/dist/types.cjs +19 -0
  54. package/dist/types.cjs.map +1 -0
  55. package/dist/types.d.cts +6 -0
  56. package/dist/types.d.ts +6 -52
  57. package/dist/types.js +1 -1
  58. package/dist/types.js.map +1 -0
  59. package/package.json +5 -10
@@ -0,0 +1,6 @@
1
+ import 'better-call';
2
+ import 'dodopayments';
3
+ import 'zod/v3';
4
+ export { g as CheckoutOptions, f as checkout } from '../types-CbotWcHh.cjs';
5
+ import 'better-auth';
6
+ import '@dodopayments/core/webhook';
@@ -1,548 +1,6 @@
1
- import type DodoPayments from "dodopayments";
2
- import { z } from "zod/v3";
3
- import type { CreateCheckoutResponse, Product } from "../types";
4
- export interface CheckoutOptions {
5
- /**
6
- * Optional list of slug -> productId mappings for easy slug checkouts
7
- */
8
- products?: Product[] | (() => Promise<Product[]>);
9
- /**
10
- * Checkout Success URL
11
- */
12
- successUrl?: string;
13
- /**
14
- * Only allow authenticated customers to checkout
15
- */
16
- authenticatedUsersOnly?: boolean;
17
- }
18
- export declare const checkout: (checkoutOptions?: CheckoutOptions) => (dodopayments: DodoPayments) => {
19
- /**
20
- * @deprecated
21
- */
22
- dodoCheckout: {
23
- <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
24
- body: z.objectInputType<{
25
- product_id: z.ZodOptional<z.ZodString>;
26
- quantity: z.ZodOptional<z.ZodNumber>;
27
- product_cart: z.ZodOptional<z.ZodArray<z.ZodObject<{
28
- product_id: z.ZodString;
29
- quantity: z.ZodNumber;
30
- }, "strip", z.ZodTypeAny, {
31
- quantity: number;
32
- product_id: string;
33
- }, {
34
- quantity: number;
35
- product_id: string;
36
- }>, "many">>;
37
- billing: z.ZodObject<{
38
- city: z.ZodString;
39
- country: z.ZodString;
40
- state: z.ZodString;
41
- street: z.ZodString;
42
- zipcode: z.ZodString;
43
- }, "strip", z.ZodTypeAny, {
44
- country: string;
45
- city: string;
46
- state: string;
47
- street: string;
48
- zipcode: string;
49
- }, {
50
- country: string;
51
- city: string;
52
- state: string;
53
- street: string;
54
- zipcode: string;
55
- }>;
56
- customer: z.ZodObject<{
57
- customer_id: z.ZodOptional<z.ZodString>;
58
- email: z.ZodOptional<z.ZodString>;
59
- name: z.ZodOptional<z.ZodString>;
60
- }, "strip", z.ZodTypeAny, {
61
- email?: string | undefined;
62
- customer_id?: string | undefined;
63
- name?: string | undefined;
64
- }, {
65
- email?: string | undefined;
66
- customer_id?: string | undefined;
67
- name?: string | undefined;
68
- }>;
69
- discount_id: z.ZodOptional<z.ZodString>;
70
- addons: z.ZodOptional<z.ZodArray<z.ZodObject<{
71
- addon_id: z.ZodString;
72
- quantity: z.ZodNumber;
73
- }, "strip", z.ZodTypeAny, {
74
- quantity: number;
75
- addon_id: string;
76
- }, {
77
- quantity: number;
78
- addon_id: string;
79
- }>, "many">>;
80
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
81
- currency: z.ZodOptional<z.ZodString>;
82
- } & {
83
- slug: z.ZodOptional<z.ZodString>;
84
- referenceId: z.ZodOptional<z.ZodString>;
85
- }, z.ZodUnknown, "strip">;
86
- } & {
87
- method?: "POST" | undefined;
88
- } & {
89
- query?: Record<string, any> | undefined;
90
- } & {
91
- params?: Record<string, any>;
92
- } & {
93
- request: Request;
94
- } & {
95
- headers?: HeadersInit;
96
- } & {
97
- asResponse?: boolean;
98
- returnHeaders?: boolean;
99
- use?: import("better-call").Middleware[];
100
- path?: string;
101
- } & {
102
- asResponse?: AsResponse | undefined;
103
- returnHeaders?: ReturnHeaders | undefined;
104
- }): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
105
- headers: Headers;
106
- response: CreateCheckoutResponse;
107
- } : CreateCheckoutResponse>;
108
- options: {
109
- method: "POST";
110
- body: z.ZodObject<{
111
- product_id: z.ZodOptional<z.ZodString>;
112
- quantity: z.ZodOptional<z.ZodNumber>;
113
- product_cart: z.ZodOptional<z.ZodArray<z.ZodObject<{
114
- product_id: z.ZodString;
115
- quantity: z.ZodNumber;
116
- }, "strip", z.ZodTypeAny, {
117
- quantity: number;
118
- product_id: string;
119
- }, {
120
- quantity: number;
121
- product_id: string;
122
- }>, "many">>;
123
- billing: z.ZodObject<{
124
- city: z.ZodString;
125
- country: z.ZodString;
126
- state: z.ZodString;
127
- street: z.ZodString;
128
- zipcode: z.ZodString;
129
- }, "strip", z.ZodTypeAny, {
130
- country: string;
131
- city: string;
132
- state: string;
133
- street: string;
134
- zipcode: string;
135
- }, {
136
- country: string;
137
- city: string;
138
- state: string;
139
- street: string;
140
- zipcode: string;
141
- }>;
142
- customer: z.ZodObject<{
143
- customer_id: z.ZodOptional<z.ZodString>;
144
- email: z.ZodOptional<z.ZodString>;
145
- name: z.ZodOptional<z.ZodString>;
146
- }, "strip", z.ZodTypeAny, {
147
- email?: string | undefined;
148
- customer_id?: string | undefined;
149
- name?: string | undefined;
150
- }, {
151
- email?: string | undefined;
152
- customer_id?: string | undefined;
153
- name?: string | undefined;
154
- }>;
155
- discount_id: z.ZodOptional<z.ZodString>;
156
- addons: z.ZodOptional<z.ZodArray<z.ZodObject<{
157
- addon_id: z.ZodString;
158
- quantity: z.ZodNumber;
159
- }, "strip", z.ZodTypeAny, {
160
- quantity: number;
161
- addon_id: string;
162
- }, {
163
- quantity: number;
164
- addon_id: string;
165
- }>, "many">>;
166
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
167
- currency: z.ZodOptional<z.ZodString>;
168
- } & {
169
- slug: z.ZodOptional<z.ZodString>;
170
- referenceId: z.ZodOptional<z.ZodString>;
171
- }, "strip", z.ZodUnknown, z.objectOutputType<{
172
- product_id: z.ZodOptional<z.ZodString>;
173
- quantity: z.ZodOptional<z.ZodNumber>;
174
- product_cart: z.ZodOptional<z.ZodArray<z.ZodObject<{
175
- product_id: z.ZodString;
176
- quantity: z.ZodNumber;
177
- }, "strip", z.ZodTypeAny, {
178
- quantity: number;
179
- product_id: string;
180
- }, {
181
- quantity: number;
182
- product_id: string;
183
- }>, "many">>;
184
- billing: z.ZodObject<{
185
- city: z.ZodString;
186
- country: z.ZodString;
187
- state: z.ZodString;
188
- street: z.ZodString;
189
- zipcode: z.ZodString;
190
- }, "strip", z.ZodTypeAny, {
191
- country: string;
192
- city: string;
193
- state: string;
194
- street: string;
195
- zipcode: string;
196
- }, {
197
- country: string;
198
- city: string;
199
- state: string;
200
- street: string;
201
- zipcode: string;
202
- }>;
203
- customer: z.ZodObject<{
204
- customer_id: z.ZodOptional<z.ZodString>;
205
- email: z.ZodOptional<z.ZodString>;
206
- name: z.ZodOptional<z.ZodString>;
207
- }, "strip", z.ZodTypeAny, {
208
- email?: string | undefined;
209
- customer_id?: string | undefined;
210
- name?: string | undefined;
211
- }, {
212
- email?: string | undefined;
213
- customer_id?: string | undefined;
214
- name?: string | undefined;
215
- }>;
216
- discount_id: z.ZodOptional<z.ZodString>;
217
- addons: z.ZodOptional<z.ZodArray<z.ZodObject<{
218
- addon_id: z.ZodString;
219
- quantity: z.ZodNumber;
220
- }, "strip", z.ZodTypeAny, {
221
- quantity: number;
222
- addon_id: string;
223
- }, {
224
- quantity: number;
225
- addon_id: string;
226
- }>, "many">>;
227
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
228
- currency: z.ZodOptional<z.ZodString>;
229
- } & {
230
- slug: z.ZodOptional<z.ZodString>;
231
- referenceId: z.ZodOptional<z.ZodString>;
232
- }, z.ZodUnknown, "strip">, z.objectInputType<{
233
- product_id: z.ZodOptional<z.ZodString>;
234
- quantity: z.ZodOptional<z.ZodNumber>;
235
- product_cart: z.ZodOptional<z.ZodArray<z.ZodObject<{
236
- product_id: z.ZodString;
237
- quantity: z.ZodNumber;
238
- }, "strip", z.ZodTypeAny, {
239
- quantity: number;
240
- product_id: string;
241
- }, {
242
- quantity: number;
243
- product_id: string;
244
- }>, "many">>;
245
- billing: z.ZodObject<{
246
- city: z.ZodString;
247
- country: z.ZodString;
248
- state: z.ZodString;
249
- street: z.ZodString;
250
- zipcode: z.ZodString;
251
- }, "strip", z.ZodTypeAny, {
252
- country: string;
253
- city: string;
254
- state: string;
255
- street: string;
256
- zipcode: string;
257
- }, {
258
- country: string;
259
- city: string;
260
- state: string;
261
- street: string;
262
- zipcode: string;
263
- }>;
264
- customer: z.ZodObject<{
265
- customer_id: z.ZodOptional<z.ZodString>;
266
- email: z.ZodOptional<z.ZodString>;
267
- name: z.ZodOptional<z.ZodString>;
268
- }, "strip", z.ZodTypeAny, {
269
- email?: string | undefined;
270
- customer_id?: string | undefined;
271
- name?: string | undefined;
272
- }, {
273
- email?: string | undefined;
274
- customer_id?: string | undefined;
275
- name?: string | undefined;
276
- }>;
277
- discount_id: z.ZodOptional<z.ZodString>;
278
- addons: z.ZodOptional<z.ZodArray<z.ZodObject<{
279
- addon_id: z.ZodString;
280
- quantity: z.ZodNumber;
281
- }, "strip", z.ZodTypeAny, {
282
- quantity: number;
283
- addon_id: string;
284
- }, {
285
- quantity: number;
286
- addon_id: string;
287
- }>, "many">>;
288
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
289
- currency: z.ZodOptional<z.ZodString>;
290
- } & {
291
- slug: z.ZodOptional<z.ZodString>;
292
- referenceId: z.ZodOptional<z.ZodString>;
293
- }, z.ZodUnknown, "strip">>;
294
- requireRequest: true;
295
- } & {
296
- use: any[];
297
- };
298
- path: "/dodopayments/checkout";
299
- };
300
- dodoCheckoutSession: {
301
- <AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
302
- body: {
303
- product_cart?: {
304
- quantity: number;
305
- product_id: string;
306
- }[] | undefined;
307
- customer?: {
308
- email?: string | undefined;
309
- name?: string | undefined;
310
- phone_number?: string | undefined;
311
- } | undefined;
312
- metadata?: Record<string, string> | undefined;
313
- slug?: string | undefined;
314
- referenceId?: string | undefined;
315
- billing_address?: {
316
- country: string;
317
- city?: string | undefined;
318
- state?: string | undefined;
319
- street?: string | undefined;
320
- zipcode?: string | undefined;
321
- } | undefined;
322
- return_url?: string | undefined;
323
- allowed_payment_method_types?: ("credit" | "debit" | "upi_collect" | "upi_intent" | "apple_pay" | "google_pay" | "amazon_pay" | "klarna" | "affirm" | "afterpay_clearpay" | "sepa" | "ach")[] | undefined;
324
- billing_currency?: string | undefined;
325
- show_saved_payment_methods?: boolean | undefined;
326
- confirm?: boolean | undefined;
327
- discount_code?: string | undefined;
328
- customization?: {
329
- theme?: "light" | "dark" | "system" | undefined;
330
- show_order_details?: boolean | undefined;
331
- show_on_demand_tag?: boolean | undefined;
332
- } | undefined;
333
- feature_flags?: {
334
- allow_currency_selection?: boolean | undefined;
335
- allow_discount_code?: boolean | undefined;
336
- allow_phone_number_collection?: boolean | undefined;
337
- allow_tax_id?: boolean | undefined;
338
- always_create_new_customer?: boolean | undefined;
339
- } | undefined;
340
- subscription_data?: {
341
- trial_period_days?: number | undefined;
342
- } | undefined;
343
- };
344
- } & {
345
- method?: "POST" | undefined;
346
- } & {
347
- query?: Record<string, any> | undefined;
348
- } & {
349
- params?: Record<string, any>;
350
- } & {
351
- request: Request;
352
- } & {
353
- headers?: HeadersInit;
354
- } & {
355
- asResponse?: boolean;
356
- returnHeaders?: boolean;
357
- use?: import("better-call").Middleware[];
358
- path?: string;
359
- } & {
360
- asResponse?: AsResponse | undefined;
361
- returnHeaders?: ReturnHeaders | undefined;
362
- }): Promise<[AsResponse] extends [true] ? Response : [ReturnHeaders] extends [true] ? {
363
- headers: Headers;
364
- response: CreateCheckoutResponse;
365
- } : CreateCheckoutResponse>;
366
- options: {
367
- method: "POST";
368
- body: z.ZodObject<{
369
- product_cart: z.ZodOptional<z.ZodArray<z.ZodObject<{
370
- product_id: z.ZodString;
371
- quantity: z.ZodNumber;
372
- }, "strip", z.ZodTypeAny, {
373
- quantity: number;
374
- product_id: string;
375
- }, {
376
- quantity: number;
377
- product_id: string;
378
- }>, "many">>;
379
- customer: z.ZodOptional<z.ZodObject<{
380
- email: z.ZodOptional<z.ZodString>;
381
- name: z.ZodOptional<z.ZodString>;
382
- phone_number: z.ZodOptional<z.ZodString>;
383
- }, "strip", z.ZodTypeAny, {
384
- email?: string | undefined;
385
- name?: string | undefined;
386
- phone_number?: string | undefined;
387
- }, {
388
- email?: string | undefined;
389
- name?: string | undefined;
390
- phone_number?: string | undefined;
391
- }>>;
392
- metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
393
- slug: z.ZodOptional<z.ZodString>;
394
- referenceId: z.ZodOptional<z.ZodString>;
395
- billing_address: z.ZodOptional<z.ZodObject<{
396
- street: z.ZodOptional<z.ZodString>;
397
- city: z.ZodOptional<z.ZodString>;
398
- state: z.ZodOptional<z.ZodString>;
399
- country: z.ZodString;
400
- zipcode: z.ZodOptional<z.ZodString>;
401
- }, "strip", z.ZodTypeAny, {
402
- country: string;
403
- city?: string | undefined;
404
- state?: string | undefined;
405
- street?: string | undefined;
406
- zipcode?: string | undefined;
407
- }, {
408
- country: string;
409
- city?: string | undefined;
410
- state?: string | undefined;
411
- street?: string | undefined;
412
- zipcode?: string | undefined;
413
- }>>;
414
- return_url: z.ZodOptional<z.ZodString>;
415
- allowed_payment_method_types: z.ZodOptional<z.ZodArray<z.ZodEnum<["credit", "debit", "upi_collect", "upi_intent", "apple_pay", "google_pay", "amazon_pay", "klarna", "affirm", "afterpay_clearpay", "sepa", "ach"]>, "many">>;
416
- billing_currency: z.ZodOptional<z.ZodString>;
417
- show_saved_payment_methods: z.ZodOptional<z.ZodBoolean>;
418
- confirm: z.ZodOptional<z.ZodBoolean>;
419
- discount_code: z.ZodOptional<z.ZodString>;
420
- customization: z.ZodOptional<z.ZodObject<{
421
- theme: z.ZodOptional<z.ZodEnum<["light", "dark", "system"]>>;
422
- show_order_details: z.ZodOptional<z.ZodBoolean>;
423
- show_on_demand_tag: z.ZodOptional<z.ZodBoolean>;
424
- }, "strip", z.ZodTypeAny, {
425
- theme?: "light" | "dark" | "system" | undefined;
426
- show_order_details?: boolean | undefined;
427
- show_on_demand_tag?: boolean | undefined;
428
- }, {
429
- theme?: "light" | "dark" | "system" | undefined;
430
- show_order_details?: boolean | undefined;
431
- show_on_demand_tag?: boolean | undefined;
432
- }>>;
433
- feature_flags: z.ZodOptional<z.ZodObject<{
434
- allow_currency_selection: z.ZodOptional<z.ZodBoolean>;
435
- allow_discount_code: z.ZodOptional<z.ZodBoolean>;
436
- allow_phone_number_collection: z.ZodOptional<z.ZodBoolean>;
437
- allow_tax_id: z.ZodOptional<z.ZodBoolean>;
438
- always_create_new_customer: z.ZodOptional<z.ZodBoolean>;
439
- }, "strip", z.ZodTypeAny, {
440
- allow_currency_selection?: boolean | undefined;
441
- allow_discount_code?: boolean | undefined;
442
- allow_phone_number_collection?: boolean | undefined;
443
- allow_tax_id?: boolean | undefined;
444
- always_create_new_customer?: boolean | undefined;
445
- }, {
446
- allow_currency_selection?: boolean | undefined;
447
- allow_discount_code?: boolean | undefined;
448
- allow_phone_number_collection?: boolean | undefined;
449
- allow_tax_id?: boolean | undefined;
450
- always_create_new_customer?: boolean | undefined;
451
- }>>;
452
- subscription_data: z.ZodOptional<z.ZodObject<{
453
- trial_period_days: z.ZodOptional<z.ZodNumber>;
454
- }, "strip", z.ZodTypeAny, {
455
- trial_period_days?: number | undefined;
456
- }, {
457
- trial_period_days?: number | undefined;
458
- }>>;
459
- }, "strip", z.ZodTypeAny, {
460
- product_cart?: {
461
- quantity: number;
462
- product_id: string;
463
- }[] | undefined;
464
- customer?: {
465
- email?: string | undefined;
466
- name?: string | undefined;
467
- phone_number?: string | undefined;
468
- } | undefined;
469
- metadata?: Record<string, string> | undefined;
470
- slug?: string | undefined;
471
- referenceId?: string | undefined;
472
- billing_address?: {
473
- country: string;
474
- city?: string | undefined;
475
- state?: string | undefined;
476
- street?: string | undefined;
477
- zipcode?: string | undefined;
478
- } | undefined;
479
- return_url?: string | undefined;
480
- allowed_payment_method_types?: ("credit" | "debit" | "upi_collect" | "upi_intent" | "apple_pay" | "google_pay" | "amazon_pay" | "klarna" | "affirm" | "afterpay_clearpay" | "sepa" | "ach")[] | undefined;
481
- billing_currency?: string | undefined;
482
- show_saved_payment_methods?: boolean | undefined;
483
- confirm?: boolean | undefined;
484
- discount_code?: string | undefined;
485
- customization?: {
486
- theme?: "light" | "dark" | "system" | undefined;
487
- show_order_details?: boolean | undefined;
488
- show_on_demand_tag?: boolean | undefined;
489
- } | undefined;
490
- feature_flags?: {
491
- allow_currency_selection?: boolean | undefined;
492
- allow_discount_code?: boolean | undefined;
493
- allow_phone_number_collection?: boolean | undefined;
494
- allow_tax_id?: boolean | undefined;
495
- always_create_new_customer?: boolean | undefined;
496
- } | undefined;
497
- subscription_data?: {
498
- trial_period_days?: number | undefined;
499
- } | undefined;
500
- }, {
501
- product_cart?: {
502
- quantity: number;
503
- product_id: string;
504
- }[] | undefined;
505
- customer?: {
506
- email?: string | undefined;
507
- name?: string | undefined;
508
- phone_number?: string | undefined;
509
- } | undefined;
510
- metadata?: Record<string, string> | undefined;
511
- slug?: string | undefined;
512
- referenceId?: string | undefined;
513
- billing_address?: {
514
- country: string;
515
- city?: string | undefined;
516
- state?: string | undefined;
517
- street?: string | undefined;
518
- zipcode?: string | undefined;
519
- } | undefined;
520
- return_url?: string | undefined;
521
- allowed_payment_method_types?: ("credit" | "debit" | "upi_collect" | "upi_intent" | "apple_pay" | "google_pay" | "amazon_pay" | "klarna" | "affirm" | "afterpay_clearpay" | "sepa" | "ach")[] | undefined;
522
- billing_currency?: string | undefined;
523
- show_saved_payment_methods?: boolean | undefined;
524
- confirm?: boolean | undefined;
525
- discount_code?: string | undefined;
526
- customization?: {
527
- theme?: "light" | "dark" | "system" | undefined;
528
- show_order_details?: boolean | undefined;
529
- show_on_demand_tag?: boolean | undefined;
530
- } | undefined;
531
- feature_flags?: {
532
- allow_currency_selection?: boolean | undefined;
533
- allow_discount_code?: boolean | undefined;
534
- allow_phone_number_collection?: boolean | undefined;
535
- allow_tax_id?: boolean | undefined;
536
- always_create_new_customer?: boolean | undefined;
537
- } | undefined;
538
- subscription_data?: {
539
- trial_period_days?: number | undefined;
540
- } | undefined;
541
- }>;
542
- requireRequest: true;
543
- } & {
544
- use: any[];
545
- };
546
- path: "/dodopayments/checkout-session";
547
- };
548
- };
1
+ import 'better-call';
2
+ import 'dodopayments';
3
+ import 'zod/v3';
4
+ export { g as CheckoutOptions, f as checkout } from '../types-CbotWcHh.js';
5
+ import 'better-auth';
6
+ import '@dodopayments/core/webhook';