@stripe/stripe-js 1.20.3 → 1.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/pure.esm.js +1 -1
  2. package/dist/pure.js +1 -1
  3. package/dist/stripe.esm.js +1 -1
  4. package/dist/stripe.js +1 -1
  5. package/package.json +5 -5
  6. package/src/shared.ts +1 -2
  7. package/types/api/bank-accounts.d.ts +61 -0
  8. package/types/api/cards.d.ts +130 -0
  9. package/types/api/index.d.ts +9 -9
  10. package/types/api/payment-intents.d.ts +330 -0
  11. package/types/api/payment-methods.d.ts +349 -0
  12. package/types/api/setup-intents.d.ts +184 -0
  13. package/types/api/shared.d.ts +124 -126
  14. package/types/api/sources.d.ts +1045 -0
  15. package/types/api/tokens.d.ts +634 -0
  16. package/types/api/verification-sessions.d.ts +9 -0
  17. package/types/index.d.ts +14 -12
  18. package/types/stripe-js/checkout.d.ts +134 -136
  19. package/types/stripe-js/elements/affirm-message.d.ts +59 -61
  20. package/types/stripe-js/elements/afterpay-clearpay-message.d.ts +118 -120
  21. package/types/stripe-js/elements/au-bank-account.d.ts +123 -120
  22. package/types/stripe-js/elements/base.d.ts +263 -263
  23. package/types/stripe-js/elements/card-cvc.d.ts +107 -103
  24. package/types/stripe-js/elements/card-expiry.d.ts +107 -104
  25. package/types/stripe-js/elements/card-number.d.ts +128 -125
  26. package/types/stripe-js/elements/card.d.ts +157 -154
  27. package/types/stripe-js/elements/eps-bank.d.ts +125 -121
  28. package/types/stripe-js/elements/fpx-bank.d.ts +120 -116
  29. package/types/stripe-js/elements/iban.d.ts +134 -131
  30. package/types/stripe-js/elements/ideal-bank.d.ts +125 -121
  31. package/types/stripe-js/elements/index.d.ts +17 -0
  32. package/types/stripe-js/elements/link-authentication.d.ts +92 -94
  33. package/types/stripe-js/elements/p24-bank.d.ts +125 -121
  34. package/types/stripe-js/elements/payment-request-button.d.ts +127 -127
  35. package/types/stripe-js/elements/payment.d.ts +190 -180
  36. package/types/stripe-js/elements/shipping-address.d.ts +123 -125
  37. package/types/stripe-js/elements-group.d.ts +617 -0
  38. package/types/stripe-js/index.d.ts +7 -1069
  39. package/types/stripe-js/payment-intents.d.ts +951 -919
  40. package/types/stripe-js/payment-request.d.ts +503 -503
  41. package/types/stripe-js/setup-intents.d.ts +149 -135
  42. package/types/stripe-js/stripe.d.ts +1070 -0
  43. package/types/stripe-js/token-and-sources.d.ts +80 -80
  44. package/types/utils.d.ts +2 -0
  45. package/types/api/BankAccounts.d.ts +0 -63
  46. package/types/api/Cards.d.ts +0 -130
  47. package/types/api/PaymentIntents.d.ts +0 -329
  48. package/types/api/PaymentMethods.d.ts +0 -349
  49. package/types/api/SetupIntents.d.ts +0 -184
  50. package/types/api/Sources.d.ts +0 -1045
  51. package/types/api/Tokens.d.ts +0 -632
  52. package/types/api/VerificationSessions.d.ts +0 -11
  53. package/types/stripe-js/elements.d.ts +0 -604
@@ -1,153 +1,151 @@
1
- declare module '@stripe/stripe-js' {
2
- interface RedirectToCheckoutServerOptions {
3
- /**
4
- * The ID of the [Checkout Session](https://stripe.com/docs/api/checkout/sessions) that is used in [Checkout's server integration](https://stripe.com/docs/payments/checkout/one-time).
5
- */
6
- sessionId: string;
7
- }
8
-
9
- interface RedirectToCheckoutClientOptions {
10
- /**
11
- * The URL to which Stripe should send customers when payment is complete.
12
- * If you’d like access to the Checkout Session for the successful payment, read more about it in our guide on [fulfilling your payments with webhooks](https://stripe.com/docs/payments/checkout/fulfillment#webhooks).
13
- */
14
- successUrl: string;
15
-
16
- /**
17
- * The URL to which Stripe should send customers when payment is canceled.
18
- */
19
- cancelUrl: string;
20
-
21
- /**
22
- * An array of objects representing the items that your customer would like to purchase.
23
- * These items are shown as line items in the Checkout interface and make up the total amount to be collected by Checkout.
24
- */
25
- lineItems?: Array<{
26
- /**
27
- * The ID of the price that the customer would like to purchase. SKU or plan IDs may also be used.
28
- */
29
- price?: string;
30
-
31
- /**
32
- * The quantity of units for the item.
33
- */
34
- quantity?: number;
35
- }>;
36
-
37
- /**
38
- * An array of objects representing the items that your customer would like to purchase.
39
- * These items are shown as line items in the Checkout interface and make up the total amount to be collected by Checkout.
40
- *
41
- * @deprecated
42
- */
43
- items?: Array<{
44
- /**
45
- * The ID of the SKU that the customer would like to purchase
46
- */
47
- sku?: string;
48
-
49
- /**
50
- * The ID of the plan that the customer would like to subscribe to.
51
- */
52
- plan?: string;
53
-
54
- /**
55
- * The quantity of units for the item.
56
- */
57
- quantity?: number;
58
- }>;
59
-
60
- /**
61
- * The mode of the Checkout Session. Required if using lineItems.
62
- */
63
- mode?: 'payment' | 'subscription';
1
+ export interface RedirectToCheckoutServerOptions {
2
+ /**
3
+ * The ID of the [Checkout Session](https://stripe.com/docs/api/checkout/sessions) that is used in [Checkout's server integration](https://stripe.com/docs/payments/checkout/one-time).
4
+ */
5
+ sessionId: string;
6
+ }
64
7
 
8
+ export interface RedirectToCheckoutClientOptions {
9
+ /**
10
+ * The URL to which Stripe should send customers when payment is complete.
11
+ * If you’d like access to the Checkout Session for the successful payment, read more about it in our guide on [fulfilling your payments with webhooks](https://stripe.com/docs/payments/checkout/fulfillment#webhooks).
12
+ */
13
+ successUrl: string;
14
+
15
+ /**
16
+ * The URL to which Stripe should send customers when payment is canceled.
17
+ */
18
+ cancelUrl: string;
19
+
20
+ /**
21
+ * An array of objects representing the items that your customer would like to purchase.
22
+ * These items are shown as line items in the Checkout interface and make up the total amount to be collected by Checkout.
23
+ */
24
+ lineItems?: Array<{
65
25
  /**
66
- * A unique string to reference the Checkout session.
67
- * This can be a customer ID, a cart ID, or similar.
68
- * It is included in the `checkout.session.completed` webhook and can be used to fulfill the purchase.
26
+ * The ID of the price that the customer would like to purchase. SKU or plan IDs may also be used.
69
27
  */
70
- clientReferenceId?: string;
28
+ price?: string;
71
29
 
72
30
  /**
73
- * The email address used to create the customer object.
74
- * If you already know your customer's email address, use this attribute to prefill it on Checkout.
31
+ * The quantity of units for the item.
75
32
  */
76
- customerEmail?: string;
77
-
33
+ quantity?: number;
34
+ }>;
35
+
36
+ /**
37
+ * An array of objects representing the items that your customer would like to purchase.
38
+ * These items are shown as line items in the Checkout interface and make up the total amount to be collected by Checkout.
39
+ *
40
+ * @deprecated
41
+ */
42
+ items?: Array<{
78
43
  /**
79
- * Specify whether Checkout should collect the customer’s billing address.
80
- * If set to `required`, Checkout will attempt to collect the customer’s billing address.
81
- * If not set or set to `auto` Checkout will only attempt to collect the billing address when necessary.
44
+ * The ID of the SKU that the customer would like to purchase
82
45
  */
83
- billingAddressCollection?: 'auto' | 'required';
46
+ sku?: string;
84
47
 
85
48
  /**
86
- * Provides configuration for Checkout to collect a shipping address from a customer.
49
+ * The ID of the plan that the customer would like to subscribe to.
87
50
  */
88
- shippingAddressCollection?: {
89
- /**
90
- * An array of two-letter ISO country codes representing which countries
91
- * Checkout should provide as options for shipping locations. The codes are
92
- * expected to be uppercase. Unsupported country codes: AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI.
93
- */
94
- allowedCountries: string[];
95
- };
51
+ plan?: string;
96
52
 
97
53
  /**
98
- * The [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) of the locale to display Checkout in.
99
- * Default is `auto` (Stripe detects the locale of the browser).
54
+ * The quantity of units for the item.
100
55
  */
101
- locale?: CheckoutLocale;
102
-
56
+ quantity?: number;
57
+ }>;
58
+
59
+ /**
60
+ * The mode of the Checkout Session. Required if using lineItems.
61
+ */
62
+ mode?: 'payment' | 'subscription';
63
+
64
+ /**
65
+ * A unique string to reference the Checkout session.
66
+ * This can be a customer ID, a cart ID, or similar.
67
+ * It is included in the `checkout.session.completed` webhook and can be used to fulfill the purchase.
68
+ */
69
+ clientReferenceId?: string;
70
+
71
+ /**
72
+ * The email address used to create the customer object.
73
+ * If you already know your customer's email address, use this attribute to prefill it on Checkout.
74
+ */
75
+ customerEmail?: string;
76
+
77
+ /**
78
+ * Specify whether Checkout should collect the customer’s billing address.
79
+ * If set to `required`, Checkout will attempt to collect the customer’s billing address.
80
+ * If not set or set to `auto` Checkout will only attempt to collect the billing address when necessary.
81
+ */
82
+ billingAddressCollection?: 'auto' | 'required';
83
+
84
+ /**
85
+ * Provides configuration for Checkout to collect a shipping address from a customer.
86
+ */
87
+ shippingAddressCollection?: {
103
88
  /**
104
- * Describes the type of transaction being performed by Checkout in order to customize relevant text on the page, such as the **Submit** button.
105
- * `submitType` can only be specified when using using line items or SKUs, and not subscriptions.
106
- * The default is `auto`.
89
+ * An array of two-letter ISO country codes representing which countries
90
+ * Checkout should provide as options for shipping locations. The codes are
91
+ * expected to be uppercase. Unsupported country codes: AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI.
107
92
  */
108
- submitType?: 'auto' | 'book' | 'donate' | 'pay';
109
- }
110
-
111
- type RedirectToCheckoutOptions =
112
- | RedirectToCheckoutServerOptions
113
- | RedirectToCheckoutClientOptions;
114
-
115
- type CheckoutLocale =
116
- | 'auto'
117
- | 'bg'
118
- | 'cs'
119
- | 'da'
120
- | 'de'
121
- | 'el'
122
- | 'en'
123
- | 'en-GB'
124
- | 'es'
125
- | 'es-419'
126
- | 'et'
127
- | 'fi'
128
- | 'fr'
129
- | 'fr-CA'
130
- | 'hu'
131
- | 'id'
132
- | 'it'
133
- | 'ja'
134
- | 'lt'
135
- | 'lv'
136
- | 'ms'
137
- | 'mt'
138
- | 'nb'
139
- | 'nl'
140
- | 'pl'
141
- | 'pt'
142
- | 'pt-BR'
143
- | 'ro'
144
- | 'ru'
145
- | 'sk'
146
- | 'sl'
147
- | 'sv'
148
- | 'th'
149
- | 'tr'
150
- | 'zh'
151
- | 'zh-HK'
152
- | 'zh-TW';
93
+ allowedCountries: string[];
94
+ };
95
+
96
+ /**
97
+ * The [IETF language tag](https://en.wikipedia.org/wiki/IETF_language_tag) of the locale to display Checkout in.
98
+ * Default is `auto` (Stripe detects the locale of the browser).
99
+ */
100
+ locale?: CheckoutLocale;
101
+
102
+ /**
103
+ * Describes the type of transaction being performed by Checkout in order to customize relevant text on the page, such as the **Submit** button.
104
+ * `submitType` can only be specified when using using line items or SKUs, and not subscriptions.
105
+ * The default is `auto`.
106
+ */
107
+ submitType?: 'auto' | 'book' | 'donate' | 'pay';
153
108
  }
109
+
110
+ export type RedirectToCheckoutOptions =
111
+ | RedirectToCheckoutServerOptions
112
+ | RedirectToCheckoutClientOptions;
113
+
114
+ export type CheckoutLocale =
115
+ | 'auto'
116
+ | 'bg'
117
+ | 'cs'
118
+ | 'da'
119
+ | 'de'
120
+ | 'el'
121
+ | 'en'
122
+ | 'en-GB'
123
+ | 'es'
124
+ | 'es-419'
125
+ | 'et'
126
+ | 'fi'
127
+ | 'fr'
128
+ | 'fr-CA'
129
+ | 'hu'
130
+ | 'id'
131
+ | 'it'
132
+ | 'ja'
133
+ | 'lt'
134
+ | 'lv'
135
+ | 'ms'
136
+ | 'mt'
137
+ | 'nb'
138
+ | 'nl'
139
+ | 'pl'
140
+ | 'pt'
141
+ | 'pt-BR'
142
+ | 'ro'
143
+ | 'ru'
144
+ | 'sk'
145
+ | 'sl'
146
+ | 'sv'
147
+ | 'th'
148
+ | 'tr'
149
+ | 'zh'
150
+ | 'zh-HK'
151
+ | 'zh-TW';
@@ -1,62 +1,60 @@
1
- declare module '@stripe/stripe-js' {
2
- type StripeAffirmMessageElement = {
3
- /**
4
- * The `element.mount` method attaches your [Element](https://stripe.com/docs/js/element) to the DOM.
5
- * `element.mount` accepts either a CSS Selector (e.g., `'#affirm-message'`) or a DOM element.
6
- */
7
- mount(domElement: string | HTMLElement): void;
8
-
9
- /**
10
- * Removes the element from the DOM and destroys it.
11
- * A destroyed element can not be re-activated or re-mounted to the DOM.
12
- */
13
- destroy(): void;
14
-
15
- /**
16
- * Unmounts the element from the DOM.
17
- * Call `element.mount` to re-attach it to the DOM.
18
- */
19
- unmount(): void;
20
-
21
- /**
22
- * Updates the options the `AffirmMessageElement` was initialized with.
23
- * Updates are merged into the existing configuration.
24
- */
25
- update(options: Partial<StripeAffirmMessageElementOptions>): void;
26
-
27
- /**
28
- * Triggered when the element is fully loaded and ready to perform method calls.
29
- */
30
- on(
31
- eventType: 'ready',
32
- handler: (event: {elementType: 'affirmMessage'}) => any
33
- ): StripeAffirmMessageElement;
34
- };
35
-
36
- interface StripeAffirmMessageElementOptions {
37
- /**
38
- * The total amount in the smallest currency unit.
39
- */
40
- amount: number;
41
-
42
- /**
43
- * The currency to display.
44
- */
45
- currency: 'USD';
46
-
47
- /**
48
- * The affirm logo color.
49
- */
50
- logoColor?: 'primary' | 'black' | 'white';
51
-
52
- /**
53
- * The font color of the promotional message.
54
- */
55
- fontColor?: string;
56
-
57
- /**
58
- * The font size of the promotional message.
59
- */
60
- fontSize?: string;
61
- }
1
+ export type StripeAffirmMessageElement = {
2
+ /**
3
+ * The `element.mount` method attaches your [Element](https://stripe.com/docs/js/element) to the DOM.
4
+ * `element.mount` accepts either a CSS Selector (e.g., `'#affirm-message'`) or a DOM element.
5
+ */
6
+ mount(domElement: string | HTMLElement): void;
7
+
8
+ /**
9
+ * Removes the element from the DOM and destroys it.
10
+ * A destroyed element can not be re-activated or re-mounted to the DOM.
11
+ */
12
+ destroy(): void;
13
+
14
+ /**
15
+ * Unmounts the element from the DOM.
16
+ * Call `element.mount` to re-attach it to the DOM.
17
+ */
18
+ unmount(): void;
19
+
20
+ /**
21
+ * Updates the options the `AffirmMessageElement` was initialized with.
22
+ * Updates are merged into the existing configuration.
23
+ */
24
+ update(options: Partial<StripeAffirmMessageElementOptions>): void;
25
+
26
+ /**
27
+ * Triggered when the element is fully loaded and ready to perform method calls.
28
+ */
29
+ on(
30
+ eventType: 'ready',
31
+ handler: (event: {elementType: 'affirmMessage'}) => any
32
+ ): StripeAffirmMessageElement;
33
+ };
34
+
35
+ export interface StripeAffirmMessageElementOptions {
36
+ /**
37
+ * The total amount in the smallest currency unit.
38
+ */
39
+ amount: number;
40
+
41
+ /**
42
+ * The currency to display.
43
+ */
44
+ currency: 'USD';
45
+
46
+ /**
47
+ * The affirm logo color.
48
+ */
49
+ logoColor?: 'primary' | 'black' | 'white';
50
+
51
+ /**
52
+ * The font color of the promotional message.
53
+ */
54
+ fontColor?: string;
55
+
56
+ /**
57
+ * The font size of the promotional message.
58
+ */
59
+ fontSize?: string;
62
60
  }
@@ -1,121 +1,119 @@
1
- declare module '@stripe/stripe-js' {
2
- type StripeAfterpayClearpayMessageElement = {
3
- /**
4
- * The `element.mount` method attaches your [Element](https://stripe.com/docs/js/element) to the DOM.
5
- * `element.mount` accepts either a CSS Selector (e.g., `'#afterpay-clearpay-message'`) or a DOM element.
6
- */
7
- mount(domElement: string | HTMLElement): void;
8
-
9
- /**
10
- * Removes the element from the DOM and destroys it.
11
- * A destroyed element can not be re-activated or re-mounted to the DOM.
12
- */
13
- destroy(): void;
14
-
15
- /**
16
- * Unmounts the element from the DOM.
17
- * Call `element.mount` to re-attach it to the DOM.
18
- */
19
- unmount(): void;
20
-
21
- /**
22
- * Updates the options the `AfterpayClearpayMessageElement` was initialized with.
23
- * Updates are merged into the existing configuration.
24
- */
25
- update(options: Partial<StripeAfterpayClearpayMessageElementOptions>): void;
26
-
27
- /**
28
- * Triggered when the element is fully loaded and ready to perform method calls.
29
- */
30
- on(
31
- eventType: 'ready',
32
- handler: (event: {elementType: 'afterpayClearpayMessage'}) => any
33
- ): StripeAfterpayClearpayMessageElement;
34
- };
35
-
36
- interface StripeAfterpayClearpayMessageElementOptions {
37
- /**
38
- * The total amount, divided into 4 installments, in the smallest currency unit.
39
- */
40
- amount: number;
41
-
42
- /**
43
- * The currency to display.
44
- */
45
- currency: 'USD' | 'AUD' | 'CAD' | 'GBP' | 'NZD' | 'EUR';
46
-
47
- /**
48
- * The badge color theme, applied when `logoType` is set to badge.
49
- */
50
- badgeTheme?:
51
- | 'black-on-mint'
52
- | 'black-on-white'
53
- | 'mint-on-black'
54
- | 'white-on-black';
55
-
56
- /**
57
- * The leading text for the mesage.
58
- */
59
- introText?: 'In' | 'in' | 'Or' | 'or' | 'Pay' | 'pay' | 'Pay in' | 'pay in';
60
-
61
- /**
62
- * Indicates whether an item is eligible for purchase with Afterpay Clearpay.
63
- */
64
- isEligible?: boolean;
65
-
66
- /**
67
- * Indicates whether an entire cart is eligible for purchase with Afterpay Clearpay.
68
- */
69
- isCartEligible?: boolean;
70
-
71
- /**
72
- * The lockup color theme, applied when `logoType` is set to lockup.
73
- */
74
- lockupTheme?: 'black' | 'white' | 'mint';
75
-
76
- /**
77
- * The logo style to display.
78
- */
79
- logoType?: 'badge' | 'lockup';
80
-
81
- /**
82
- * The maximum `amount` allowed for a purchase. This should match the limit defined in your Stripe dashboard.
83
- */
84
- max?: number;
85
-
86
- /**
87
- * The minimum `amount` allowed for a purchase. This should match the limit defined in your Stripe dashboard.
88
- */
89
- min?: number;
90
-
91
- /**
92
- * The style of modal link to display.
93
- */
94
- modalLinkStyle?: 'circled-info-icon' | 'learn-more-text' | 'more-info-text';
95
-
96
- /**
97
- * The background color for the info modal.
98
- */
99
- modalTheme?: 'mint' | 'white';
100
-
101
- /**
102
- * Determines whether 'interest-free' is displayed in the message.
103
- */
104
- showInterestFree?: boolean;
105
-
106
- /**
107
- * Determines whether 'with' is displayed before the logo.
108
- */
109
- showLowerLimit?: boolean;
110
-
111
- /**
112
- * Determines whether the lower limit is displayed when `amount` exceeds price limits.
113
- */
114
- showUpperLimit?: boolean;
115
-
116
- /**
117
- * Determines whether the upper limit is displayed when `amount` exceeds price limits.
118
- */
119
- showWith?: boolean;
120
- }
1
+ export type StripeAfterpayClearpayMessageElement = {
2
+ /**
3
+ * The `element.mount` method attaches your [Element](https://stripe.com/docs/js/element) to the DOM.
4
+ * `element.mount` accepts either a CSS Selector (e.g., `'#afterpay-clearpay-message'`) or a DOM element.
5
+ */
6
+ mount(domElement: string | HTMLElement): void;
7
+
8
+ /**
9
+ * Removes the element from the DOM and destroys it.
10
+ * A destroyed element can not be re-activated or re-mounted to the DOM.
11
+ */
12
+ destroy(): void;
13
+
14
+ /**
15
+ * Unmounts the element from the DOM.
16
+ * Call `element.mount` to re-attach it to the DOM.
17
+ */
18
+ unmount(): void;
19
+
20
+ /**
21
+ * Updates the options the `AfterpayClearpayMessageElement` was initialized with.
22
+ * Updates are merged into the existing configuration.
23
+ */
24
+ update(options: Partial<StripeAfterpayClearpayMessageElementOptions>): void;
25
+
26
+ /**
27
+ * Triggered when the element is fully loaded and ready to perform method calls.
28
+ */
29
+ on(
30
+ eventType: 'ready',
31
+ handler: (event: {elementType: 'afterpayClearpayMessage'}) => any
32
+ ): StripeAfterpayClearpayMessageElement;
33
+ };
34
+
35
+ export interface StripeAfterpayClearpayMessageElementOptions {
36
+ /**
37
+ * The total amount, divided into 4 installments, in the smallest currency unit.
38
+ */
39
+ amount: number;
40
+
41
+ /**
42
+ * The currency to display.
43
+ */
44
+ currency: 'USD' | 'AUD' | 'CAD' | 'GBP' | 'NZD' | 'EUR';
45
+
46
+ /**
47
+ * The badge color theme, applied when `logoType` is set to badge.
48
+ */
49
+ badgeTheme?:
50
+ | 'black-on-mint'
51
+ | 'black-on-white'
52
+ | 'mint-on-black'
53
+ | 'white-on-black';
54
+
55
+ /**
56
+ * The leading text for the mesage.
57
+ */
58
+ introText?: 'In' | 'in' | 'Or' | 'or' | 'Pay' | 'pay' | 'Pay in' | 'pay in';
59
+
60
+ /**
61
+ * Indicates whether an item is eligible for purchase with Afterpay Clearpay.
62
+ */
63
+ isEligible?: boolean;
64
+
65
+ /**
66
+ * Indicates whether an entire cart is eligible for purchase with Afterpay Clearpay.
67
+ */
68
+ isCartEligible?: boolean;
69
+
70
+ /**
71
+ * The lockup color theme, applied when `logoType` is set to lockup.
72
+ */
73
+ lockupTheme?: 'black' | 'white' | 'mint';
74
+
75
+ /**
76
+ * The logo style to display.
77
+ */
78
+ logoType?: 'badge' | 'lockup';
79
+
80
+ /**
81
+ * The maximum `amount` allowed for a purchase. This should match the limit defined in your Stripe dashboard.
82
+ */
83
+ max?: number;
84
+
85
+ /**
86
+ * The minimum `amount` allowed for a purchase. This should match the limit defined in your Stripe dashboard.
87
+ */
88
+ min?: number;
89
+
90
+ /**
91
+ * The style of modal link to display.
92
+ */
93
+ modalLinkStyle?: 'circled-info-icon' | 'learn-more-text' | 'more-info-text';
94
+
95
+ /**
96
+ * The background color for the info modal.
97
+ */
98
+ modalTheme?: 'mint' | 'white';
99
+
100
+ /**
101
+ * Determines whether 'interest-free' is displayed in the message.
102
+ */
103
+ showInterestFree?: boolean;
104
+
105
+ /**
106
+ * Determines whether 'with' is displayed before the logo.
107
+ */
108
+ showLowerLimit?: boolean;
109
+
110
+ /**
111
+ * Determines whether the lower limit is displayed when `amount` exceeds price limits.
112
+ */
113
+ showUpperLimit?: boolean;
114
+
115
+ /**
116
+ * Determines whether the upper limit is displayed when `amount` exceeds price limits.
117
+ */
118
+ showWith?: boolean;
121
119
  }