@doujins/payments-ui 0.1.16 → 0.1.17-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +823 -129
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +306 -68
- package/dist/index.d.ts +306 -68
- package/dist/index.js +821 -131
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -67,7 +67,7 @@ interface NotificationPayload {
|
|
|
67
67
|
type NotificationHandler = (payload: NotificationPayload) => void;
|
|
68
68
|
|
|
69
69
|
type PaymentPlatform = 'nmi' | 'ccbill';
|
|
70
|
-
type CheckoutStatus =
|
|
70
|
+
type CheckoutStatus = string;
|
|
71
71
|
interface BillingDetails {
|
|
72
72
|
firstName: string;
|
|
73
73
|
lastName: string;
|
|
@@ -79,18 +79,109 @@ interface BillingDetails {
|
|
|
79
79
|
country: string;
|
|
80
80
|
email: string;
|
|
81
81
|
provider?: string;
|
|
82
|
+
last_four?: string;
|
|
83
|
+
card_type?: string;
|
|
84
|
+
expiry_date?: string;
|
|
82
85
|
}
|
|
83
86
|
interface PaymentMethod {
|
|
84
87
|
id: string;
|
|
88
|
+
object?: string;
|
|
89
|
+
type?: string;
|
|
85
90
|
processor?: string;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
+
livemode?: boolean;
|
|
92
|
+
card?: {
|
|
93
|
+
brand: string;
|
|
94
|
+
last4: string;
|
|
95
|
+
exp_month: number;
|
|
96
|
+
exp_year: number;
|
|
97
|
+
};
|
|
91
98
|
is_active?: boolean;
|
|
92
99
|
failure_reason?: string | null;
|
|
93
100
|
created_at?: string;
|
|
101
|
+
created?: number;
|
|
102
|
+
subscriptions?: Array<{
|
|
103
|
+
id: string;
|
|
104
|
+
display_name: string;
|
|
105
|
+
description?: string;
|
|
106
|
+
created_at: string;
|
|
107
|
+
}>;
|
|
108
|
+
}
|
|
109
|
+
interface SubscriptionPrice {
|
|
110
|
+
id: string;
|
|
111
|
+
display_name: string;
|
|
112
|
+
amount: number;
|
|
113
|
+
currency: string;
|
|
114
|
+
billing_cycle_days?: number;
|
|
115
|
+
processors?: Record<string, unknown>;
|
|
116
|
+
}
|
|
117
|
+
interface SubscriptionProduct {
|
|
118
|
+
id: string;
|
|
119
|
+
slug?: string;
|
|
120
|
+
display_name?: string;
|
|
121
|
+
description?: string;
|
|
122
|
+
tier_group?: string;
|
|
123
|
+
tier_rank?: number;
|
|
124
|
+
entitlements_spec?: unknown;
|
|
125
|
+
credits_spec?: unknown;
|
|
126
|
+
is_active?: boolean;
|
|
127
|
+
created_at?: string;
|
|
128
|
+
updated_at?: string;
|
|
129
|
+
}
|
|
130
|
+
type SubscriptionStatus = 'active' | 'cancelled' | 'past_due' | 'all' | 'pending';
|
|
131
|
+
interface SubscriptionAccess {
|
|
132
|
+
kind: string;
|
|
133
|
+
entitlement: string;
|
|
134
|
+
processor?: string;
|
|
135
|
+
processor_subscription_id?: string;
|
|
136
|
+
start_at?: string | null;
|
|
137
|
+
end_at?: string | null;
|
|
138
|
+
}
|
|
139
|
+
interface Subscription {
|
|
140
|
+
id: string;
|
|
141
|
+
user_id?: string;
|
|
142
|
+
product_id?: string;
|
|
143
|
+
price_id?: string;
|
|
144
|
+
status: string;
|
|
145
|
+
started_at?: string;
|
|
146
|
+
current_period_starts_at?: string;
|
|
147
|
+
current_period_ends_at?: string;
|
|
148
|
+
created_at?: string;
|
|
149
|
+
updated_at?: string;
|
|
150
|
+
processor?: string;
|
|
151
|
+
processor_subscription_id?: string;
|
|
152
|
+
payment_method_id?: string;
|
|
153
|
+
cancel_feedback?: string | null;
|
|
154
|
+
cancel_type?: string | null;
|
|
155
|
+
cancelled_at?: string | null;
|
|
156
|
+
price?: SubscriptionPrice;
|
|
157
|
+
product?: SubscriptionProduct;
|
|
158
|
+
access?: SubscriptionAccess;
|
|
159
|
+
}
|
|
160
|
+
interface PaginatedSubscriptions {
|
|
161
|
+
data: Subscription[];
|
|
162
|
+
total: number;
|
|
163
|
+
limit: number;
|
|
164
|
+
offset: number;
|
|
165
|
+
hasMore: boolean;
|
|
166
|
+
}
|
|
167
|
+
interface UpdateSubscriptionPaymentMethodPayload {
|
|
168
|
+
subscription_id: string;
|
|
169
|
+
payment_method_id: string;
|
|
170
|
+
}
|
|
171
|
+
interface UpdateSubscriptionPaymentMethodResponse {
|
|
172
|
+
success?: boolean;
|
|
173
|
+
message?: string;
|
|
174
|
+
subscription_id: string;
|
|
175
|
+
payment_method_id: string;
|
|
176
|
+
}
|
|
177
|
+
interface ChangeSubscriptionPayload {
|
|
178
|
+
price_id: string;
|
|
179
|
+
}
|
|
180
|
+
interface ChangeSubscriptionResponse {
|
|
181
|
+
status: string;
|
|
182
|
+
action?: 'upgrade' | 'downgrade';
|
|
183
|
+
message?: string;
|
|
184
|
+
subscription_id?: string;
|
|
94
185
|
}
|
|
95
186
|
interface CreatePaymentMethodPayload {
|
|
96
187
|
payment_token: string;
|
|
@@ -104,6 +195,9 @@ interface CreatePaymentMethodPayload {
|
|
|
104
195
|
country: string;
|
|
105
196
|
email: string;
|
|
106
197
|
provider?: string;
|
|
198
|
+
last_four?: string;
|
|
199
|
+
card_type?: string;
|
|
200
|
+
expiry_date?: string;
|
|
107
201
|
}
|
|
108
202
|
interface PaginatedPaymentMethods {
|
|
109
203
|
data: PaymentMethod[];
|
|
@@ -147,29 +241,62 @@ interface BillingStatus {
|
|
|
147
241
|
is_premium: boolean;
|
|
148
242
|
access: BillingAccessGrant[];
|
|
149
243
|
}
|
|
244
|
+
type CheckoutMode = 'one_off' | 'subscription';
|
|
245
|
+
type CheckoutNextActionType = 'redirect_to_url' | 'solana_qr' | 'solana_transaction' | 'none';
|
|
246
|
+
interface CheckoutNextActionRedirect {
|
|
247
|
+
url: string;
|
|
248
|
+
return_url?: string;
|
|
249
|
+
}
|
|
250
|
+
interface CheckoutNextAction {
|
|
251
|
+
type: CheckoutNextActionType;
|
|
252
|
+
redirect_to_url?: CheckoutNextActionRedirect;
|
|
253
|
+
}
|
|
254
|
+
interface CheckoutPaymentResponse {
|
|
255
|
+
processor: string;
|
|
256
|
+
reference?: string;
|
|
257
|
+
transaction_url?: string;
|
|
258
|
+
transaction_data?: string;
|
|
259
|
+
redirect_url?: string;
|
|
260
|
+
transaction_id?: string;
|
|
261
|
+
}
|
|
150
262
|
interface CheckoutResponse {
|
|
263
|
+
object?: string;
|
|
264
|
+
id: string;
|
|
151
265
|
status: CheckoutStatus;
|
|
152
|
-
|
|
153
|
-
|
|
266
|
+
mode?: CheckoutMode;
|
|
267
|
+
price_id?: string;
|
|
268
|
+
payment?: CheckoutPaymentResponse;
|
|
154
269
|
payment_id?: string;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
270
|
+
subscription_id?: string;
|
|
271
|
+
expires_at?: string;
|
|
272
|
+
next_action?: CheckoutNextAction;
|
|
273
|
+
message?: string;
|
|
274
|
+
metadata?: Record<string, string>;
|
|
158
275
|
}
|
|
159
276
|
interface CheckoutRequestPayload {
|
|
160
277
|
price_id: string;
|
|
161
|
-
|
|
162
|
-
payment_token?: string;
|
|
163
|
-
payment_method_id?: string;
|
|
278
|
+
mode?: CheckoutMode;
|
|
164
279
|
provider?: string;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
280
|
+
payment: {
|
|
281
|
+
processor: string;
|
|
282
|
+
payment_token?: string;
|
|
283
|
+
payment_method_id?: string;
|
|
284
|
+
token_symbol?: string;
|
|
285
|
+
flow?: 'transfer_request' | 'transaction_request';
|
|
286
|
+
wallet?: string;
|
|
287
|
+
email?: string;
|
|
288
|
+
first_name?: string;
|
|
289
|
+
last_name?: string;
|
|
290
|
+
address1?: string;
|
|
291
|
+
city?: string;
|
|
292
|
+
state?: string;
|
|
293
|
+
zip?: string;
|
|
294
|
+
country?: string;
|
|
295
|
+
last_four?: string;
|
|
296
|
+
card_type?: string;
|
|
297
|
+
expiry_date?: string;
|
|
298
|
+
};
|
|
299
|
+
metadata?: Record<string, string>;
|
|
173
300
|
}
|
|
174
301
|
interface NmiSubscribePayload {
|
|
175
302
|
priceId: string;
|
|
@@ -186,15 +313,6 @@ interface NmiSubscribePayload {
|
|
|
186
313
|
provider?: string;
|
|
187
314
|
processor?: string;
|
|
188
315
|
}
|
|
189
|
-
interface CCBillSubscribePayload {
|
|
190
|
-
priceId: string;
|
|
191
|
-
email: string;
|
|
192
|
-
firstName: string;
|
|
193
|
-
lastName: string;
|
|
194
|
-
zipCode: string;
|
|
195
|
-
country: string;
|
|
196
|
-
processor?: string;
|
|
197
|
-
}
|
|
198
316
|
interface SubscriptionCheckoutPayload {
|
|
199
317
|
priceId: string;
|
|
200
318
|
provider?: string;
|
|
@@ -421,9 +539,20 @@ declare const createClient: (config: ClientConfig) => {
|
|
|
421
539
|
activatePaymentMethod(id: string): Promise<void>;
|
|
422
540
|
checkout(payload: CheckoutRequestPayload, idempotencyKey?: string): Promise<CheckoutResponse>;
|
|
423
541
|
cancelSubscription(feedback?: string): Promise<{
|
|
424
|
-
|
|
425
|
-
|
|
542
|
+
status?: string;
|
|
543
|
+
message?: string;
|
|
544
|
+
success?: boolean;
|
|
426
545
|
}>;
|
|
546
|
+
listSubscriptions(params?: {
|
|
547
|
+
status?: string;
|
|
548
|
+
limit?: number;
|
|
549
|
+
offset?: number;
|
|
550
|
+
}): Promise<PaginatedSubscriptions>;
|
|
551
|
+
updateSubscriptionPaymentMethod(payload: UpdateSubscriptionPaymentMethodPayload): Promise<UpdateSubscriptionPaymentMethodResponse>;
|
|
552
|
+
resumeSubscription(): Promise<{
|
|
553
|
+
status: string;
|
|
554
|
+
}>;
|
|
555
|
+
changeSubscription(payload: ChangeSubscriptionPayload): Promise<ChangeSubscriptionResponse>;
|
|
427
556
|
getPaymentHistory(params?: {
|
|
428
557
|
limit?: number;
|
|
429
558
|
offset?: number;
|
|
@@ -453,6 +582,86 @@ interface PaymentProviderProps {
|
|
|
453
582
|
declare const PaymentProvider: React$1.FC<PaymentProviderProps>;
|
|
454
583
|
declare const usePaymentContext: () => PaymentContextValue;
|
|
455
584
|
|
|
585
|
+
interface CardDetailsFormTranslations {
|
|
586
|
+
firstName?: string;
|
|
587
|
+
lastName?: string;
|
|
588
|
+
email?: string;
|
|
589
|
+
address?: string;
|
|
590
|
+
city?: string;
|
|
591
|
+
state?: string;
|
|
592
|
+
postalCode?: string;
|
|
593
|
+
country?: string;
|
|
594
|
+
cardNumber?: string;
|
|
595
|
+
expiry?: string;
|
|
596
|
+
cvv?: string;
|
|
597
|
+
submit?: string;
|
|
598
|
+
processing?: string;
|
|
599
|
+
errorRequiredFields?: string;
|
|
600
|
+
errorTokenization?: string;
|
|
601
|
+
errorFormNotReady?: string;
|
|
602
|
+
infoSecure?: string;
|
|
603
|
+
cancel?: string;
|
|
604
|
+
editEmail?: string;
|
|
605
|
+
selectCountry?: string;
|
|
606
|
+
}
|
|
607
|
+
declare const defaultCardDetailsFormTranslations: Required<CardDetailsFormTranslations>;
|
|
608
|
+
interface CardDetailsFormProps {
|
|
609
|
+
visible: boolean;
|
|
610
|
+
onTokenize: (token: string, billing: BillingDetails) => void;
|
|
611
|
+
submitLabel: string;
|
|
612
|
+
submitting?: boolean;
|
|
613
|
+
defaultValues?: Partial<BillingDetails>;
|
|
614
|
+
externalError?: string | null;
|
|
615
|
+
collectPrefix?: string;
|
|
616
|
+
className?: string;
|
|
617
|
+
onBillingChange?: (billing: BillingDetails) => void;
|
|
618
|
+
submitDisabled?: boolean;
|
|
619
|
+
translations?: CardDetailsFormTranslations;
|
|
620
|
+
}
|
|
621
|
+
declare const CardDetailsForm: React$1.FC<CardDetailsFormProps>;
|
|
622
|
+
|
|
623
|
+
interface PaymentExperienceTranslations extends CardDetailsFormTranslations {
|
|
624
|
+
useSavedCardTab?: string;
|
|
625
|
+
addNewCardTab?: string;
|
|
626
|
+
savedUnavailable?: string;
|
|
627
|
+
payWithSavedCard?: string;
|
|
628
|
+
processingSavedCard?: string;
|
|
629
|
+
savedErrorFallback?: string;
|
|
630
|
+
newCardUnavailable?: string;
|
|
631
|
+
payNow?: string;
|
|
632
|
+
storedLoadingCards?: string;
|
|
633
|
+
storedNoSavedMethods?: string;
|
|
634
|
+
storedSelectedLabel?: string;
|
|
635
|
+
storedUseCardLabel?: string;
|
|
636
|
+
payWithCcbill?: string;
|
|
637
|
+
processingCcbill?: string;
|
|
638
|
+
errors?: Record<string, string>;
|
|
639
|
+
}
|
|
640
|
+
declare const defaultPaymentExperienceTranslations: Required<PaymentExperienceTranslations>;
|
|
641
|
+
interface PaymentExperienceProps {
|
|
642
|
+
priceId: string;
|
|
643
|
+
usdAmount: number;
|
|
644
|
+
onNewCardPayment?: (payload: {
|
|
645
|
+
token: string;
|
|
646
|
+
billing: BillingDetails;
|
|
647
|
+
}) => Promise<void> | void;
|
|
648
|
+
onSavedMethodPayment?: (payload: {
|
|
649
|
+
paymentMethodId: string;
|
|
650
|
+
amount: number;
|
|
651
|
+
}) => Promise<void> | void;
|
|
652
|
+
onCcbillPayment?: (payload: {
|
|
653
|
+
billing: BillingDetails;
|
|
654
|
+
}) => Promise<void> | void;
|
|
655
|
+
enableNewCard?: boolean;
|
|
656
|
+
enableStoredMethods?: boolean;
|
|
657
|
+
enableSolanaPay?: boolean;
|
|
658
|
+
onSolanaSuccess?: (result: SubmitPaymentResponse | string) => void;
|
|
659
|
+
onSolanaError?: (error: string) => void;
|
|
660
|
+
initialMode?: 'cards' | 'solana';
|
|
661
|
+
translations?: PaymentExperienceTranslations;
|
|
662
|
+
}
|
|
663
|
+
declare const PaymentExperience: React$1.FC<PaymentExperienceProps>;
|
|
664
|
+
|
|
456
665
|
interface SubscriptionCheckoutModalProps {
|
|
457
666
|
open: boolean;
|
|
458
667
|
onOpenChange: (open: boolean) => void;
|
|
@@ -468,6 +677,11 @@ interface SubscriptionCheckoutModalProps {
|
|
|
468
677
|
onSolanaSuccess?: (result: SubmitPaymentResponse | string) => void;
|
|
469
678
|
onSolanaError?: (error: string) => void;
|
|
470
679
|
initialMode?: 'cards' | 'solana';
|
|
680
|
+
translations?: SubscriptionCheckoutModalTranslations;
|
|
681
|
+
}
|
|
682
|
+
interface SubscriptionCheckoutModalTranslations extends PaymentExperienceTranslations {
|
|
683
|
+
title?: string;
|
|
684
|
+
selectPlanMessage?: string;
|
|
471
685
|
}
|
|
472
686
|
declare const SubscriptionCheckoutModal: React$1.FC<SubscriptionCheckoutModalProps>;
|
|
473
687
|
|
|
@@ -515,48 +729,21 @@ interface PaymentsDialogContextValue {
|
|
|
515
729
|
declare const PaymentsDialogProvider: React$1.FC<React$1.PropsWithChildren>;
|
|
516
730
|
declare const usePaymentDialogs: () => PaymentsDialogContextValue;
|
|
517
731
|
|
|
518
|
-
interface
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
defaultValues?: Partial<BillingDetails>;
|
|
524
|
-
externalError?: string | null;
|
|
525
|
-
collectPrefix?: string;
|
|
526
|
-
className?: string;
|
|
527
|
-
onBillingChange?: (billing: BillingDetails) => void;
|
|
528
|
-
submitDisabled?: boolean;
|
|
732
|
+
interface StoredPaymentMethodsTranslations {
|
|
733
|
+
loadingCards?: string;
|
|
734
|
+
noSavedMethods?: string;
|
|
735
|
+
selectedLabel?: string;
|
|
736
|
+
useCardLabel?: string;
|
|
529
737
|
}
|
|
530
|
-
declare const CardDetailsForm: React$1.FC<CardDetailsFormProps>;
|
|
531
|
-
|
|
532
738
|
interface StoredPaymentMethodsProps {
|
|
533
739
|
selectedMethodId?: string | null;
|
|
534
740
|
onMethodSelect?: (method: PaymentMethod) => void;
|
|
535
741
|
heading?: string;
|
|
536
742
|
description?: string;
|
|
743
|
+
translations?: StoredPaymentMethodsTranslations;
|
|
537
744
|
}
|
|
538
745
|
declare const StoredPaymentMethods: React$1.FC<StoredPaymentMethodsProps>;
|
|
539
746
|
|
|
540
|
-
interface PaymentExperienceProps {
|
|
541
|
-
priceId: string;
|
|
542
|
-
usdAmount: number;
|
|
543
|
-
onNewCardPayment?: (payload: {
|
|
544
|
-
token: string;
|
|
545
|
-
billing: BillingDetails;
|
|
546
|
-
}) => Promise<void> | void;
|
|
547
|
-
onSavedMethodPayment?: (payload: {
|
|
548
|
-
paymentMethodId: string;
|
|
549
|
-
amount: number;
|
|
550
|
-
}) => Promise<void> | void;
|
|
551
|
-
enableNewCard?: boolean;
|
|
552
|
-
enableStoredMethods?: boolean;
|
|
553
|
-
enableSolanaPay?: boolean;
|
|
554
|
-
onSolanaSuccess?: (result: SubmitPaymentResponse | string) => void;
|
|
555
|
-
onSolanaError?: (error: string) => void;
|
|
556
|
-
initialMode?: 'cards' | 'solana';
|
|
557
|
-
}
|
|
558
|
-
declare const PaymentExperience: React$1.FC<PaymentExperienceProps>;
|
|
559
|
-
|
|
560
747
|
interface BillingHistoryTranslations {
|
|
561
748
|
title?: string;
|
|
562
749
|
description?: string;
|
|
@@ -602,7 +789,10 @@ interface CancelMembershipDialogProps {
|
|
|
602
789
|
onCancelled?: () => void;
|
|
603
790
|
onNotify?: NotificationHandler;
|
|
604
791
|
translations?: CancelMembershipDialogTranslations;
|
|
792
|
+
open?: boolean;
|
|
793
|
+
onOpenChange?: (open: boolean) => void;
|
|
605
794
|
}
|
|
795
|
+
declare const defaultTranslations: Required<CancelMembershipDialogTranslations>;
|
|
606
796
|
declare const CancelMembershipDialog: React.FC<CancelMembershipDialogProps>;
|
|
607
797
|
|
|
608
798
|
interface PaymentMethodsSectionTranslations {
|
|
@@ -627,6 +817,10 @@ interface PaymentMethodsSectionTranslations {
|
|
|
627
817
|
cardUpdated?: string;
|
|
628
818
|
defaultPaymentMethodUpdated?: string;
|
|
629
819
|
unableToSetDefault?: string;
|
|
820
|
+
errors?: Record<string, string>;
|
|
821
|
+
activeSubscriptions?: string;
|
|
822
|
+
showSubscriptions?: string;
|
|
823
|
+
hideSubscriptions?: string;
|
|
630
824
|
}
|
|
631
825
|
interface PaymentMethodsSectionProps {
|
|
632
826
|
isAuthenticated?: boolean;
|
|
@@ -639,6 +833,50 @@ interface PaymentMethodsSectionProps {
|
|
|
639
833
|
}
|
|
640
834
|
declare const PaymentMethodsSection: React.FC<PaymentMethodsSectionProps>;
|
|
641
835
|
|
|
836
|
+
interface SubscriptionsSectionTranslations {
|
|
837
|
+
title?: string;
|
|
838
|
+
description?: string;
|
|
839
|
+
loading?: string;
|
|
840
|
+
noSubscriptions?: string;
|
|
841
|
+
status?: string;
|
|
842
|
+
active?: string;
|
|
843
|
+
cancelled?: string;
|
|
844
|
+
pastDue?: string;
|
|
845
|
+
pending?: string;
|
|
846
|
+
paymentMethodLabel?: string;
|
|
847
|
+
changePaymentMethod?: string;
|
|
848
|
+
paymentMethodUpdated?: string;
|
|
849
|
+
paymentMethodUpdateFailed?: string;
|
|
850
|
+
resume?: string;
|
|
851
|
+
changePlan?: string;
|
|
852
|
+
changePlanPlaceholder?: string;
|
|
853
|
+
planChanged?: string;
|
|
854
|
+
planChangeFailed?: string;
|
|
855
|
+
planChangeUnavailable?: string;
|
|
856
|
+
resumeSuccess?: string;
|
|
857
|
+
resumeFailed?: string;
|
|
858
|
+
update?: string;
|
|
859
|
+
product?: string;
|
|
860
|
+
price?: string;
|
|
861
|
+
currentPeriod?: string;
|
|
862
|
+
refresh?: string;
|
|
863
|
+
manage?: string;
|
|
864
|
+
close?: string;
|
|
865
|
+
paymentMethodTab?: string;
|
|
866
|
+
changePlanTab?: string;
|
|
867
|
+
statusTab?: string;
|
|
868
|
+
cancelTab?: string;
|
|
869
|
+
}
|
|
870
|
+
interface SubscriptionsSectionProps {
|
|
871
|
+
isAuthenticated?: boolean;
|
|
872
|
+
translations?: SubscriptionsSectionTranslations;
|
|
873
|
+
onNotify?: NotificationHandler;
|
|
874
|
+
statusFilter?: string;
|
|
875
|
+
cancelDialogTranslations?: CancelMembershipDialogTranslations;
|
|
876
|
+
onCancelled?: () => void;
|
|
877
|
+
}
|
|
878
|
+
declare const SubscriptionsSection: React.FC<SubscriptionsSectionProps>;
|
|
879
|
+
|
|
642
880
|
interface WalletDialogProps {
|
|
643
881
|
open: boolean;
|
|
644
882
|
onOpenChange: (open: boolean) => void;
|
|
@@ -764,7 +1002,7 @@ interface SubscribeWithCardParams {
|
|
|
764
1002
|
priceId?: string | null;
|
|
765
1003
|
processor?: string;
|
|
766
1004
|
provider?: string;
|
|
767
|
-
paymentToken
|
|
1005
|
+
paymentToken?: string;
|
|
768
1006
|
billing: BillingDetails;
|
|
769
1007
|
idempotencyKey?: string;
|
|
770
1008
|
}
|
|
@@ -792,4 +1030,4 @@ declare const useSubscriptionActions: () => {
|
|
|
792
1030
|
subscribeWithCCBill: ({ priceId, email, firstName, lastName, zipCode, country, processor, idempotencyKey, }: SubscribeWithCCBillParams) => Promise<CheckoutResponse>;
|
|
793
1031
|
};
|
|
794
1032
|
|
|
795
|
-
export { type AuthTokenProvider, type BillingAccessGrant, type BillingDetails, BillingHistory, type BillingHistoryProps, type BillingHistoryTranslations, type BillingStatus,
|
|
1033
|
+
export { type AuthTokenProvider, type BillingAccessGrant, type BillingDetails, BillingHistory, type BillingHistoryProps, type BillingHistoryTranslations, type BillingStatus, CancelMembershipDialog, type CancelMembershipDialogProps, type CancelMembershipDialogTranslations, CardDetailsForm, type CardDetailsFormProps, type CardDetailsFormTranslations, type ChangeSubscriptionPayload, type ChangeSubscriptionResponse, type CheckoutMode, type CheckoutNextAction, type CheckoutNextActionRedirect, type CheckoutNextActionType, type CheckoutPaymentResponse, type CheckoutRequestPayload, type CheckoutResponse, type CheckoutStatus, type Client, ClientApiError, type ClientConfig, type CreatePaymentMethodPayload, type GeneratePaymentRequest, type GeneratePaymentResponse, type HttpMethod, type NmiSubscribePayload, type NotificationHandler, type NotificationPayload, type NotificationStatus, type PaginatedPaymentMethods, type PaginatedPayments, type PaginatedResponse, type PaginatedSubscriptions, type Payment, type PaymentCallbacks, type PaymentConfig, PaymentContext, type PaymentContextValue, type PaymentError, PaymentExperience, type PaymentExperienceProps, type PaymentExperienceTranslations, type PaymentFeatureFlags, type PaymentFetcher, type PaymentMethod, type PaymentMethodOption, PaymentMethodsSection, type PaymentMethodsSectionProps, type PaymentMethodsSectionTranslations, type PaymentMode, type PaymentPlatform, PaymentProvider, type PaymentProviderProps, type PaymentSolanaConfig, type PaymentState, type PaymentStatusPayload, type PaymentStatusResponse, type PaymentStep, type PaymentSuccessPayload, type PaymentUserDetails, PaymentsDialogProvider, type RequestOptions, type SolanaFlowConfig, type SolanaPayQRCodeIntent, type SolanaPayStatusResponse, type SolanaPayTransaction, type SolanaPaymentMethod, SolanaPaymentSelector, type SolanaPaymentSelectorProps, SolanaPaymentView, type SolanaPaymentViewProps, type SolanaWallet, StoredPaymentMethods, type StoredPaymentMethodsProps, type StoredPaymentMethodsTranslations, type SubmitPaymentRequest, type SubmitPaymentResponse, type SubscribeWithCCBillParams, type SubscribeWithCardParams, type SubscribeWithSavedMethodParams, type Subscription, type SubscriptionAccess, SubscriptionCheckoutModal, type SubscriptionCheckoutModalProps, type SubscriptionCheckoutModalTranslations, type SubscriptionCheckoutPayload, type SubscriptionPrice, type SubscriptionProduct, type SubscriptionStatus, SubscriptionSuccessDialog, SubscriptionsSection, type SubscriptionsSectionProps, type SubscriptionsSectionTranslations, type SupportedTokensResponse, type TokenBalance, type TokenInfo, type TransactionStatus, type UpdateSubscriptionPaymentMethodPayload, type UpdateSubscriptionPaymentMethodResponse, type VerifyWalletResponse, type WalletChallengeResponse, type WalletConnectionState, WalletDialog, type WalletDialogProps, type WalletListResponse, WalletModal, type WalletModalProps, createClient, defaultCardDetailsFormTranslations, defaultPaymentExperienceTranslations, defaultTranslations, usePaymentContext, usePaymentDialogs, usePaymentMethods, usePaymentNotifications, usePaymentStatus, useSolanaQrPayment, useSubscriptionActions, useSupportedTokens, useTokenBalance };
|