stripe-pwa-elements 3.0.0 → 3.0.1

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 (186) hide show
  1. package/dist/cjs/error-FFC4kSs5.js +18 -0
  2. package/dist/cjs/error-FFC4kSs5.js.map +1 -0
  3. package/dist/cjs/factory-Hsw0e7-d.js +3825 -0
  4. package/dist/cjs/factory-Hsw0e7-d.js.map +1 -0
  5. package/dist/cjs/{index-BmB5d_Yj.js → index-Ba1pBePA.js} +4 -4
  6. package/dist/cjs/{index-BmB5d_Yj.js.map → index-Ba1pBePA.js.map} +1 -1
  7. package/dist/cjs/{index-CQkz7IJv.js → index-C1haN5iF.js} +5 -2
  8. package/dist/cjs/index-C1haN5iF.js.map +1 -0
  9. package/dist/cjs/ion-icon.cjs.entry.js +1 -1
  10. package/dist/cjs/loader.cjs.js +2 -2
  11. package/dist/cjs/stripe-address-element.cjs.entry.js +288 -0
  12. package/dist/cjs/stripe-address-element.entry.cjs.js.map +1 -0
  13. package/dist/cjs/stripe-card-element-modal.cjs.entry.js +1 -1
  14. package/dist/cjs/stripe-card-element.stripe-modal.entry.cjs.js.map +1 -1
  15. package/dist/cjs/stripe-card-element_2.cjs.entry.js +48 -3278
  16. package/dist/cjs/stripe-currency-selector.cjs.entry.js +186 -0
  17. package/dist/cjs/stripe-currency-selector.entry.cjs.js.map +1 -0
  18. package/dist/cjs/stripe-elements.cjs.js +2 -2
  19. package/dist/cjs/stripe-express-checkout-element.cjs.entry.js +294 -0
  20. package/dist/cjs/stripe-express-checkout-element.entry.cjs.js.map +1 -0
  21. package/dist/cjs/stripe-link-authentication-element.cjs.entry.js +222 -0
  22. package/dist/cjs/stripe-link-authentication-element.entry.cjs.js.map +1 -0
  23. package/dist/cjs/stripe-payment-element.cjs.entry.js +469 -0
  24. package/dist/cjs/stripe-payment-element.entry.cjs.js.map +1 -0
  25. package/dist/cjs/stripe-payment-request-button.cjs.entry.js +2 -2
  26. package/dist/collection/collection-manifest.json +5 -0
  27. package/dist/collection/components/stripe-address-element/stripe-address-element.css +73 -0
  28. package/dist/collection/components/stripe-address-element/stripe-address-element.js +711 -0
  29. package/dist/collection/components/stripe-address-element/stripe-address-element.js.map +1 -0
  30. package/dist/collection/components/stripe-card-element/stripe-card-element.css +16 -8
  31. package/dist/collection/components/stripe-card-element/stripe-card-element.js +32 -8
  32. package/dist/collection/components/stripe-card-element/stripe-card-element.js.map +1 -1
  33. package/dist/collection/components/stripe-currency-selector/stripe-currency-selector.css +44 -0
  34. package/dist/collection/components/stripe-currency-selector/stripe-currency-selector.js +477 -0
  35. package/dist/collection/components/stripe-currency-selector/stripe-currency-selector.js.map +1 -0
  36. package/dist/collection/components/stripe-express-checkout-element/stripe-express-checkout-element.css +36 -0
  37. package/dist/collection/components/stripe-express-checkout-element/stripe-express-checkout-element.js +787 -0
  38. package/dist/collection/components/stripe-express-checkout-element/stripe-express-checkout-element.js.map +1 -0
  39. package/dist/collection/components/stripe-link-authentication-element/stripe-link-authentication-element.css +49 -0
  40. package/dist/collection/components/stripe-link-authentication-element/stripe-link-authentication-element.js +545 -0
  41. package/dist/collection/components/stripe-link-authentication-element/stripe-link-authentication-element.js.map +1 -0
  42. package/dist/collection/components/stripe-modal/stripe-modal.css +16 -14
  43. package/dist/collection/components/stripe-modal/stripe-modal.js +3 -2
  44. package/dist/collection/components/stripe-modal/stripe-modal.js.map +1 -1
  45. package/dist/collection/components/stripe-payment-element/stripe-payment-element.css +78 -0
  46. package/dist/collection/components/stripe-payment-element/stripe-payment-element.js +979 -0
  47. package/dist/collection/components/stripe-payment-element/stripe-payment-element.js.map +1 -0
  48. package/dist/collection/interfaces.js.map +1 -1
  49. package/dist/collection/services/address-element-manager.js +83 -0
  50. package/dist/collection/services/address-element-manager.js.map +1 -0
  51. package/dist/collection/services/card-element-manager.js +4 -34
  52. package/dist/collection/services/card-element-manager.js.map +1 -1
  53. package/dist/collection/services/currency-selector-element-manager.js +92 -0
  54. package/dist/collection/services/currency-selector-element-manager.js.map +1 -0
  55. package/dist/collection/services/express-checkout-element-manager.js +131 -0
  56. package/dist/collection/services/express-checkout-element-manager.js.map +1 -0
  57. package/dist/collection/services/factory.js +40 -0
  58. package/dist/collection/services/factory.js.map +1 -1
  59. package/dist/collection/services/interfaces.js.map +1 -1
  60. package/dist/collection/services/link-authentication-element-manager.js +93 -0
  61. package/dist/collection/services/link-authentication-element-manager.js.map +1 -0
  62. package/dist/collection/services/payment-element-manager.js +95 -0
  63. package/dist/collection/services/payment-element-manager.js.map +1 -0
  64. package/dist/collection/services/stripe-service.js +51 -2
  65. package/dist/collection/services/stripe-service.js.map +1 -1
  66. package/dist/collection/utils/element-finder.js +32 -0
  67. package/dist/collection/utils/element-finder.js.map +1 -0
  68. package/dist/collection/utils/error.js.map +1 -1
  69. package/dist/collection/utils/i18n.js +2 -2
  70. package/dist/collection/utils/i18n.js.map +1 -1
  71. package/dist/collection/utils/platform.js.map +1 -1
  72. package/dist/collection/utils/utils.js +1 -1
  73. package/dist/collection/utils/utils.js.map +1 -1
  74. package/dist/components/error.js +16 -0
  75. package/dist/components/error.js.map +1 -0
  76. package/dist/components/factory.js +3736 -0
  77. package/dist/components/factory.js.map +1 -0
  78. package/dist/{esm/index-C5QyifTT.js → components/index2.js} +4 -4
  79. package/dist/components/index2.js.map +1 -0
  80. package/dist/components/stripe-address-element.d.ts +11 -0
  81. package/dist/components/stripe-address-element.js +327 -0
  82. package/dist/components/stripe-address-element.js.map +1 -0
  83. package/dist/components/stripe-card-element2.js +37 -3183
  84. package/dist/components/stripe-card-element2.js.map +1 -1
  85. package/dist/components/stripe-currency-selector.d.ts +11 -0
  86. package/dist/components/stripe-currency-selector.js +218 -0
  87. package/dist/components/stripe-currency-selector.js.map +1 -0
  88. package/dist/components/stripe-express-checkout-element.d.ts +11 -0
  89. package/dist/components/stripe-express-checkout-element.js +332 -0
  90. package/dist/components/stripe-express-checkout-element.js.map +1 -0
  91. package/dist/components/stripe-link-authentication-element.d.ts +11 -0
  92. package/dist/components/stripe-link-authentication-element.js +256 -0
  93. package/dist/components/stripe-link-authentication-element.js.map +1 -0
  94. package/dist/components/stripe-modal2.js +4 -3
  95. package/dist/components/stripe-modal2.js.map +1 -1
  96. package/dist/components/stripe-payment-element.d.ts +11 -0
  97. package/dist/components/stripe-payment-element.js +510 -0
  98. package/dist/components/stripe-payment-element.js.map +1 -0
  99. package/dist/components/stripe-payment-request-button2.js +2 -189
  100. package/dist/components/stripe-payment-request-button2.js.map +1 -1
  101. package/dist/components/utils.js.map +1 -1
  102. package/dist/esm/error-XRfh5Wrs.js +16 -0
  103. package/dist/esm/error-XRfh5Wrs.js.map +1 -0
  104. package/dist/esm/factory-Li_TGt9P.js +3821 -0
  105. package/dist/esm/factory-Li_TGt9P.js.map +1 -0
  106. package/dist/esm/index-BHDCxQOb.js +192 -0
  107. package/dist/esm/{index-C5QyifTT.js.map → index-BHDCxQOb.js.map} +1 -1
  108. package/dist/esm/{index-DB2hiILr.js → index-Dkis4t79.js} +5 -2
  109. package/dist/esm/index-Dkis4t79.js.map +1 -0
  110. package/dist/esm/ion-icon.entry.js +1 -1
  111. package/dist/esm/loader.js +3 -3
  112. package/dist/esm/stripe-address-element.entry.js +286 -0
  113. package/dist/esm/stripe-address-element.entry.js.map +1 -0
  114. package/dist/esm/stripe-card-element-modal.entry.js +1 -1
  115. package/dist/esm/stripe-card-element.stripe-modal.entry.js.map +1 -1
  116. package/dist/esm/stripe-card-element_2.entry.js +41 -3271
  117. package/dist/esm/stripe-currency-selector.entry.js +184 -0
  118. package/dist/esm/stripe-currency-selector.entry.js.map +1 -0
  119. package/dist/esm/stripe-elements.js +3 -3
  120. package/dist/esm/stripe-express-checkout-element.entry.js +292 -0
  121. package/dist/esm/stripe-express-checkout-element.entry.js.map +1 -0
  122. package/dist/esm/stripe-link-authentication-element.entry.js +220 -0
  123. package/dist/esm/stripe-link-authentication-element.entry.js.map +1 -0
  124. package/dist/esm/stripe-payment-element.entry.js +467 -0
  125. package/dist/esm/stripe-payment-element.entry.js.map +1 -0
  126. package/dist/esm/stripe-payment-request-button.entry.js +2 -2
  127. package/dist/stripe-elements/{p-b598431f.entry.js → p-01d63033.entry.js} +2 -2
  128. package/dist/stripe-elements/p-1b8f9c7f.entry.js +2 -0
  129. package/dist/stripe-elements/p-1b8f9c7f.entry.js.map +1 -0
  130. package/dist/stripe-elements/{p-5beb3870.entry.js → p-37008853.entry.js} +2 -2
  131. package/dist/stripe-elements/p-5d152193.entry.js +2 -0
  132. package/dist/stripe-elements/p-5d152193.entry.js.map +1 -0
  133. package/dist/stripe-elements/p-623f13e6.entry.js +2 -0
  134. package/dist/stripe-elements/p-623f13e6.entry.js.map +1 -0
  135. package/dist/stripe-elements/p-809c9f2f.entry.js +2 -0
  136. package/dist/stripe-elements/p-809c9f2f.entry.js.map +1 -0
  137. package/dist/stripe-elements/{p-C5QyifTT.js → p-BHDCxQOb.js} +2 -2
  138. package/dist/stripe-elements/{p-C5QyifTT.js.map → p-BHDCxQOb.js.map} +1 -1
  139. package/dist/stripe-elements/p-Dkis4t79.js +3 -0
  140. package/dist/stripe-elements/p-Dkis4t79.js.map +1 -0
  141. package/dist/stripe-elements/p-WnA32N4v.js +2 -0
  142. package/dist/stripe-elements/p-WnA32N4v.js.map +1 -0
  143. package/dist/stripe-elements/p-XRfh5Wrs.js +2 -0
  144. package/dist/stripe-elements/p-XRfh5Wrs.js.map +1 -0
  145. package/dist/stripe-elements/p-ba41e196.entry.js +2 -0
  146. package/dist/stripe-elements/p-ba41e196.entry.js.map +1 -0
  147. package/dist/stripe-elements/{p-bb923a08.entry.js → p-bb1bc49a.entry.js} +2 -2
  148. package/dist/stripe-elements/p-f21ea941.entry.js +2 -0
  149. package/dist/stripe-elements/p-f21ea941.entry.js.map +1 -0
  150. package/dist/stripe-elements/stripe-address-element.entry.esm.js.map +1 -0
  151. package/dist/stripe-elements/stripe-card-element.stripe-modal.entry.esm.js.map +1 -1
  152. package/dist/stripe-elements/stripe-currency-selector.entry.esm.js.map +1 -0
  153. package/dist/stripe-elements/stripe-elements.esm.js +1 -1
  154. package/dist/stripe-elements/stripe-express-checkout-element.entry.esm.js.map +1 -0
  155. package/dist/stripe-elements/stripe-link-authentication-element.entry.esm.js.map +1 -0
  156. package/dist/stripe-elements/stripe-payment-element.entry.esm.js.map +1 -0
  157. package/dist/types/components/stripe-address-element/stripe-address-element.d.ts +195 -0
  158. package/dist/types/components/stripe-card-element/stripe-card-element.d.ts +3 -1
  159. package/dist/types/components/stripe-currency-selector/stripe-currency-selector.d.ts +127 -0
  160. package/dist/types/components/stripe-express-checkout-element/stripe-express-checkout-element.d.ts +232 -0
  161. package/dist/types/components/stripe-link-authentication-element/stripe-link-authentication-element.d.ts +143 -0
  162. package/dist/types/components/stripe-payment-element/stripe-payment-element.d.ts +295 -0
  163. package/dist/types/components.d.ts +836 -6
  164. package/dist/types/interfaces.d.ts +23 -1
  165. package/dist/types/services/address-element-manager.d.ts +44 -0
  166. package/dist/types/services/card-element-manager.d.ts +0 -8
  167. package/dist/types/services/currency-selector-element-manager.d.ts +45 -0
  168. package/dist/types/services/express-checkout-element-manager.d.ts +50 -0
  169. package/dist/types/services/factory.d.ts +26 -1
  170. package/dist/types/services/interfaces.d.ts +263 -2
  171. package/dist/types/services/link-authentication-element-manager.d.ts +51 -0
  172. package/dist/types/services/payment-element-manager.d.ts +46 -0
  173. package/dist/types/services/stripe-service.d.ts +17 -3
  174. package/dist/types/utils/element-finder.d.ts +8 -0
  175. package/dist/types/utils/error.d.ts +1 -1
  176. package/dist/types/utils/platform.d.ts +2 -2
  177. package/package.json +12 -3
  178. package/dist/cjs/index-CQkz7IJv.js.map +0 -1
  179. package/dist/esm/index-DB2hiILr.js.map +0 -1
  180. package/dist/stripe-elements/p-263cf51d.entry.js +0 -2
  181. package/dist/stripe-elements/p-263cf51d.entry.js.map +0 -1
  182. package/dist/stripe-elements/p-DB2hiILr.js +0 -3
  183. package/dist/stripe-elements/p-DB2hiILr.js.map +0 -1
  184. /package/dist/stripe-elements/{p-b598431f.entry.js.map → p-01d63033.entry.js.map} +0 -0
  185. /package/dist/stripe-elements/{p-5beb3870.entry.js.map → p-37008853.entry.js.map} +0 -0
  186. /package/dist/stripe-elements/{p-bb923a08.entry.js.map → p-bb1bc49a.entry.js.map} +0 -0
@@ -5,11 +5,96 @@
5
5
  * It contains typing information for all components that exist in this project.
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
- import { DefaultFormSubmitResult, FormSubmitEvent, FormSubmitHandler, InitStripeOptions, IntentType, PaymentRequestButtonOption, PaymentRequestPaymentMethodEventHandler, PaymentRequestShippingAddressEventHandler, PaymentRequestShippingOptionEventHandler, ProgressStatus, StripeDidLoadedHandler, StripeLoadedEvent } from "./interfaces";
9
- import { PaymentRequestOptions, PaymentRequestWallet } from "@stripe/stripe-js";
10
- export { DefaultFormSubmitResult, FormSubmitEvent, FormSubmitHandler, InitStripeOptions, IntentType, PaymentRequestButtonOption, PaymentRequestPaymentMethodEventHandler, PaymentRequestShippingAddressEventHandler, PaymentRequestShippingOptionEventHandler, ProgressStatus, StripeDidLoadedHandler, StripeLoadedEvent } from "./interfaces";
11
- export { PaymentRequestOptions, PaymentRequestWallet } from "@stripe/stripe-js";
8
+ import { AddressSubmitEvent, AddressSubmitHandler } from "./components/stripe-address-element/stripe-address-element";
9
+ import { CurrencySelectorChangeEvent, CurrencySelectorChangeHandler, DefaultFormSubmitResult, FormSubmitEvent, FormSubmitHandler, InitStripeOptions, IntentType, LinkAuthenticationElementChangeEvent, LinkAuthenticationElementChangeHandler, PaymentRequestButtonOption, PaymentRequestPaymentMethodEventHandler, PaymentRequestShippingAddressEventHandler, PaymentRequestShippingOptionEventHandler, ProgressStatus, StripeDidLoadedHandler, StripeLoadedEvent } from "./interfaces";
10
+ import { PaymentRequestOptions, PaymentRequestWallet, StripeExpressCheckoutElementClickEvent, StripeExpressCheckoutElementConfirmEvent } from "@stripe/stripe-js";
11
+ import { ExpressCheckoutElementOptions } from "./services/interfaces";
12
+ import { CheckoutSessionFormSubmitResult, InitCheckoutSessionOptions, PaymentElementSubmitEvent, PaymentElementSubmitHandler } from "./components/stripe-payment-element/stripe-payment-element";
13
+ export { AddressSubmitEvent, AddressSubmitHandler } from "./components/stripe-address-element/stripe-address-element";
14
+ export { CurrencySelectorChangeEvent, CurrencySelectorChangeHandler, DefaultFormSubmitResult, FormSubmitEvent, FormSubmitHandler, InitStripeOptions, IntentType, LinkAuthenticationElementChangeEvent, LinkAuthenticationElementChangeHandler, PaymentRequestButtonOption, PaymentRequestPaymentMethodEventHandler, PaymentRequestShippingAddressEventHandler, PaymentRequestShippingOptionEventHandler, ProgressStatus, StripeDidLoadedHandler, StripeLoadedEvent } from "./interfaces";
15
+ export { PaymentRequestOptions, PaymentRequestWallet, StripeExpressCheckoutElementClickEvent, StripeExpressCheckoutElementConfirmEvent } from "@stripe/stripe-js";
16
+ export { ExpressCheckoutElementOptions } from "./services/interfaces";
17
+ export { CheckoutSessionFormSubmitResult, InitCheckoutSessionOptions, PaymentElementSubmitEvent, PaymentElementSubmitHandler } from "./components/stripe-payment-element/stripe-payment-element";
12
18
  export namespace Components {
19
+ interface StripeAddressElement {
20
+ /**
21
+ * Allowed countries (array of country codes)
22
+ */
23
+ "allowedCountries"?: string[];
24
+ /**
25
+ * Overwrite the application name that registered For wrapper library (like Capacitor)
26
+ * @default 'stripe-pwa-elements'
27
+ */
28
+ "applicationName": string;
29
+ /**
30
+ * Submit button label By default we recommended to use these string - 'Save' or 'Continue' These strings will translated automatically by this library.
31
+ * @default 'Save'
32
+ */
33
+ "buttonLabel": string;
34
+ /**
35
+ * Default country code (e.g., 'US', 'JP', 'GB')
36
+ */
37
+ "defaultCountry"?: string;
38
+ /**
39
+ * Get the current address value
40
+ * @returns Promise resolving to the address value
41
+ * @example ``` const stripeElement = document.querySelector('stripe-address-element'); const addressValue = await stripeElement.getValue(); console.log('Address:', addressValue); ```
42
+ */
43
+ "getValue": () => Promise<{ value: import("@stripe/stripe-js").StripeAddressElementChangeEvent["value"]; complete: boolean; }>;
44
+ /**
45
+ * Form submit event handler
46
+ */
47
+ "handleSubmit": AddressSubmitHandler;
48
+ /**
49
+ * Get Stripe.js, and initialize elements
50
+ * @param publishableKey
51
+ * @param options
52
+ * @example ``` const stripeElement = document.createElement('stripe-address-element'); customElements .whenDefined('stripe-address-element') .then(() => { stripeElement.initStripe('pk_test_XXXXXXXXX') }) ```
53
+ */
54
+ "initStripe": (publishableKey: string, options?: InitStripeOptions) => Promise<void>;
55
+ /**
56
+ * Address mode: 'shipping' or 'billing'
57
+ * @default 'billing'
58
+ */
59
+ "mode": 'shipping' | 'billing';
60
+ /**
61
+ * Your Stripe publishable API key.
62
+ */
63
+ "publishableKey": string;
64
+ /**
65
+ * Set error message
66
+ * @param errorMessage string
67
+ * @returns
68
+ * @example ``` const stripeElement = document.createElement('stripe-address-element'); customElements .whenDefined('stripe-address-element') .then(() => { stripeElement.addEventListener('formSubmit', async props => { try { throw new Error('debug') } catch (e) { stripeElement.setErrorMessage(`Error: ${e.message}`) stripeElement.updateProgress('failure') } }); }) ```
69
+ */
70
+ "setErrorMessage": (errorMessage: string) => Promise<this>;
71
+ /**
72
+ * Form title By default we recommended to use these string - 'Shipping address' for shipping mode - 'Billing address' for billing mode These strings will translated automatically by this library.
73
+ * @default 'Billing address'
74
+ */
75
+ "sheetTitle": string;
76
+ /**
77
+ * Show the form label
78
+ * @default false
79
+ */
80
+ "showLabel": boolean;
81
+ /**
82
+ * Optional. Making API calls for connected accounts
83
+ * @info https://stripe.com/docs/connect/authentication
84
+ */
85
+ "stripeAccount": string;
86
+ /**
87
+ * Stripe.js class loaded handler
88
+ */
89
+ "stripeDidLoaded"?: StripeDidLoadedHandler;
90
+ /**
91
+ * Update the form submit progress
92
+ * @param progress
93
+ * @returns
94
+ * @example ``` const stripeElement = document.createElement('stripe-address-element'); customElements .whenDefined('stripe-address-element') .then(() => { stripeElement.addEventListener('formSubmit', async props => { const { detail: { address } } = props; console.log('Address:', address); stripeElement.updateProgress('success') }); }) ```
95
+ */
96
+ "updateProgress": (progress: ProgressStatus) => Promise<this>;
97
+ }
13
98
  interface StripeCardElement {
14
99
  /**
15
100
  * Overwrite the application name that registered For wrapper library (like Capacitor)
@@ -188,6 +273,201 @@ export namespace Components {
188
273
  */
189
274
  "zip": boolean;
190
275
  }
276
+ /**
277
+ * Stripe Currency Selector Element
278
+ * Allows customers to select their preferred currency for Adaptive Pricing
279
+ * @info https://docs.stripe.com/elements/currency-selector-element
280
+ */
281
+ interface StripeCurrencySelector {
282
+ /**
283
+ * Overwrite the application name that registered For wrapper library (like Capacitor)
284
+ * @default 'stripe-pwa-elements'
285
+ */
286
+ "applicationName": string;
287
+ /**
288
+ * The client secret from Checkout Session Required for Currency Selector Element
289
+ * @info https://docs.stripe.com/elements/currency-selector-element
290
+ */
291
+ "clientSecret"?: string;
292
+ /**
293
+ * Get the selected currency
294
+ * @returns Promise resolving to the selected currency code (e.g., 'USD', 'EUR')
295
+ * @example ``` const stripeCurrencySelector = document.querySelector('stripe-currency-selector'); const currency = await stripeCurrencySelector.getSelectedCurrency(); console.log('Selected currency:', currency); ```
296
+ */
297
+ "getSelectedCurrency": () => Promise<string | undefined>;
298
+ /**
299
+ * Currency change event handler
300
+ */
301
+ "handleCurrencyChange"?: CurrencySelectorChangeHandler;
302
+ /**
303
+ * Get Stripe.js, and initialize elements
304
+ * @param publishableKey - Your Stripe publishable API key
305
+ * @param options - Optional initialization options (e.g., stripeAccount)
306
+ * @example ``` const stripeCurrencySelector = document.createElement('stripe-currency-selector'); customElements .whenDefined('stripe-currency-selector') .then(() => { stripeCurrencySelector.initStripe('pk_test_XXXXXXXXX') }) ```
307
+ */
308
+ "initStripe": (publishableKey: string, options?: InitStripeOptions) => Promise<void>;
309
+ /**
310
+ * Your Stripe publishable API key.
311
+ */
312
+ "publishableKey": string;
313
+ /**
314
+ * Set error message
315
+ * @param errorMessage - The error message to display
316
+ * @returns Promise resolving to this instance for method chaining
317
+ * @example ``` const stripeCurrencySelector = document.createElement('stripe-currency-selector'); customElements .whenDefined('stripe-currency-selector') .then(() => { stripeCurrencySelector.setErrorMessage('Invalid currency selected'); }); ```
318
+ */
319
+ "setErrorMessage": (errorMessage: string) => Promise<this>;
320
+ /**
321
+ * Optional. Making API calls for connected accounts
322
+ * @info https://stripe.com/docs/connect/authentication
323
+ */
324
+ "stripeAccount": string;
325
+ /**
326
+ * Stripe.js class loaded handler
327
+ */
328
+ "stripeDidLoaded"?: StripeDidLoadedHandler;
329
+ }
330
+ /**
331
+ * Express Checkout Element Component
332
+ * Provides one-click payment methods (Apple Pay, Google Pay, Link, PayPal, etc.)
333
+ * @example ```html
334
+ * <stripe-express-checkout-element
335
+ * publishable-key="pk_test_..."
336
+ * client-secret="pi_..."
337
+ * amount="1099"
338
+ * currency="usd"
339
+ * />
340
+ * ```
341
+ */
342
+ interface StripeExpressCheckoutElement {
343
+ /**
344
+ * Payment amount in cents (e.g., 1099 for $10.99)
345
+ */
346
+ "amount"?: number;
347
+ /**
348
+ * Overwrite the application name that registered For wrapper library (like Capacitor)
349
+ * @default 'stripe-pwa-elements'
350
+ */
351
+ "applicationName": string;
352
+ /**
353
+ * Button height in pixels (e.g., '48px')
354
+ */
355
+ "buttonHeight"?: string;
356
+ /**
357
+ * The client secret from paymentIntent.create or setupIntent.create response
358
+ * @example ``` const element = document.createElement('stripe-express-checkout-element'); customElements .whenDefined('stripe-express-checkout-element') .then(() => { element.setAttribute('client-secret', 'pi_xxx_secret_xxx') }) ```
359
+ */
360
+ "clientSecret"?: string;
361
+ /**
362
+ * Three-letter ISO currency code (e.g., 'usd', 'eur')
363
+ */
364
+ "currency"?: string;
365
+ /**
366
+ * Get Stripe.js, and initialize elements
367
+ * @param publishableKey
368
+ * @param options
369
+ * @example ``` const element = document.createElement('stripe-express-checkout-element'); customElements .whenDefined('stripe-express-checkout-element') .then(() => { element.initStripe('pk_test_XXXXXXXXX') }) ```
370
+ */
371
+ "initStripe": (publishableKey: string, options?: InitStripeOptions) => Promise<void>;
372
+ /**
373
+ * Default submit handle type. If you want to use `setupIntent`, should update this attribute.
374
+ * @default 'payment'
375
+ */
376
+ "intentType": IntentType;
377
+ /**
378
+ * Your Stripe publishable API key.
379
+ */
380
+ "publishableKey": string;
381
+ /**
382
+ * Set error message
383
+ * @param errorMessage string
384
+ * @returns
385
+ * @example ``` const element = document.createElement('stripe-express-checkout-element'); customElements .whenDefined('stripe-express-checkout-element') .then(() => { element.setErrorMessage('Payment failed') }) ```
386
+ */
387
+ "setErrorMessage": (errorMessage: string) => Promise<this>;
388
+ /**
389
+ * The component will provide a function to call the confirmation API. If you want to customize the behavior, should set false. And listen the 'confirm' event on the element
390
+ * @default true
391
+ */
392
+ "shouldUseDefaultConfirmAction": boolean;
393
+ /**
394
+ * Optional. Making API calls for connected accounts
395
+ * @info https://stripe.com/docs/connect/authentication
396
+ */
397
+ "stripeAccount": string;
398
+ /**
399
+ * Stripe.js class loaded handler
400
+ */
401
+ "stripeDidLoaded"?: StripeDidLoadedHandler;
402
+ /**
403
+ * Update element options dynamically
404
+ * @param options - Partial options to update
405
+ * @example ``` const element = document.createElement('stripe-express-checkout-element'); customElements .whenDefined('stripe-express-checkout-element') .then(async () => { await element.initStripe('pk_test_xxx') element.updateElementOptions({ amount: 2000 }) }) ```
406
+ */
407
+ "updateElementOptions": (options: Partial<ExpressCheckoutElementOptions>) => Promise<this>;
408
+ /**
409
+ * Update the progress status
410
+ * @param progress
411
+ * @returns
412
+ * @example ``` const element = document.createElement('stripe-express-checkout-element'); customElements .whenDefined('stripe-express-checkout-element') .then(() => { element.updateProgress('success') }) ```
413
+ */
414
+ "updateProgress": (progress: ProgressStatus) => Promise<this>;
415
+ }
416
+ interface StripeLinkAuthenticationElement {
417
+ /**
418
+ * Overwrite the application name that registered For wrapper library (like Capacitor)
419
+ * @default 'stripe-pwa-elements'
420
+ */
421
+ "applicationName": string;
422
+ /**
423
+ * Default email value to prefill the element
424
+ */
425
+ "defaultEmail"?: string;
426
+ /**
427
+ * Get the current email value from the element
428
+ * @returns The current email value or undefined
429
+ * @example ``` const stripeElement = document.createElement('stripe-link-authentication-element'); customElements .whenDefined('stripe-link-authentication-element') .then(async () => { const email = await stripeElement.getEmail(); console.log(email); }) ```
430
+ */
431
+ "getEmail": () => Promise<string | undefined>;
432
+ /**
433
+ * Link Authentication Element change handler
434
+ */
435
+ "handleChange"?: LinkAuthenticationElementChangeHandler;
436
+ /**
437
+ * Get Stripe.js, and initialize elements
438
+ * @param publishableKey
439
+ * @param options
440
+ * @example ``` const stripeElement = document.createElement('stripe-link-authentication-element'); customElements .whenDefined('stripe-link-authentication-element') .then(() => { stripeElement.initStripe('pk_test_XXXXXXXXX') }) ```
441
+ */
442
+ "initStripe": (publishableKey: string, options?: InitStripeOptions) => Promise<void>;
443
+ /**
444
+ * Your Stripe publishable API key.
445
+ */
446
+ "publishableKey": string;
447
+ /**
448
+ * Set error message
449
+ * @param errorMessage string
450
+ * @returns
451
+ * @example ``` const stripeElement = document.createElement('stripe-link-authentication-element'); customElements .whenDefined('stripe-link-authentication-element') .then(() => { stripeElement.setErrorMessage('Invalid email address') }) ```
452
+ */
453
+ "setErrorMessage": (errorMessage: string) => Promise<this>;
454
+ /**
455
+ * Optional. Making API calls for connected accounts
456
+ * @info https://stripe.com/docs/connect/authentication
457
+ */
458
+ "stripeAccount": string;
459
+ /**
460
+ * Stripe.js class loaded handler
461
+ */
462
+ "stripeDidLoaded"?: StripeDidLoadedHandler;
463
+ /**
464
+ * Update the progress status
465
+ * @param progress
466
+ * @returns
467
+ * @example ``` const stripeElement = document.createElement('stripe-link-authentication-element'); customElements .whenDefined('stripe-link-authentication-element') .then(() => { stripeElement.updateProgress('success') }) ```
468
+ */
469
+ "updateProgress": (progress: ProgressStatus) => Promise<this>;
470
+ }
191
471
  interface StripeModal {
192
472
  /**
193
473
  * Close the modal
@@ -212,6 +492,90 @@ export namespace Components {
212
492
  */
213
493
  "toggleModal": () => Promise<void>;
214
494
  }
495
+ interface StripePaymentElement {
496
+ /**
497
+ * Overwrite the application name that registered For wrapper library (like Capacitor)
498
+ * @default 'stripe-pwa-elements'
499
+ */
500
+ "applicationName": string;
501
+ /**
502
+ * Submit button label By default we recommended to use these string - 'Pay' -> PaymentSheet - 'Add' -> PaymentFlow(Android) - 'Add card' -> PaymentFlow(iOS) - 'Add a card' -> PaymentFlow(iOS) These strings will translated automatically by this library.
503
+ * @default 'Pay'
504
+ */
505
+ "buttonLabel": string;
506
+ /**
507
+ * The client secret from checkout session response Use this for Checkout Session mode instead of intentClientSecret When this prop is set, the component will use Checkout Session API
508
+ * @example ``` const stripeElement = document.createElement('stripe-payment-element'); customElements .whenDefined('stripe-payment-element') .then(() => { stripeElement.initStripeWithCheckoutSession('pk_test_xxx', 'cs_xxx_secret_xxx') }) ```
509
+ */
510
+ "checkoutSessionClientSecret"?: string;
511
+ /**
512
+ * Form submit event handler
513
+ */
514
+ "handleSubmit": PaymentElementSubmitHandler;
515
+ /**
516
+ * Get Stripe.js, and initialize elements
517
+ * @param publishableKey
518
+ * @param options
519
+ * @example ``` const stripeElement = document.createElement('stripe-payment-element'); customElements .whenDefined('stripe-payment-element') .then(() => { stripeElement.initStripe('pk_test_XXXXXXXXX') }) ```
520
+ */
521
+ "initStripe": (publishableKey: string, options?: InitStripeOptions) => Promise<void>;
522
+ /**
523
+ * Get Stripe.js and initialize with Checkout Session mode Use this method when you have a Checkout Session client secret instead of Payment/Setup Intent
524
+ * @param publishableKey - Your Stripe publishable API key
525
+ * @param checkoutSessionClientSecret - The client secret from Checkout Session
526
+ * @param options - Optional configuration
527
+ * @example ``` const stripeElement = document.createElement('stripe-payment-element'); customElements .whenDefined('stripe-payment-element') .then(() => { stripeElement.initStripeWithCheckoutSession( 'pk_test_XXXXXXXXX', 'cs_xxx_secret_xxx' ) }) ```
528
+ */
529
+ "initStripeWithCheckoutSession": (publishableKey: string, checkoutSessionClientSecret: string, options?: InitCheckoutSessionOptions) => Promise<void>;
530
+ /**
531
+ * The client secret from paymentIntent.create or setupIntent.create response Use this for Payment Intent / Setup Intent mode
532
+ * @example ``` const stripeElement = document.createElement('stripe-payment-element'); customElements .whenDefined('stripe-payment-element') .then(() => { stripeElement.setAttribute('intent-client-secret', 'pi_xxx_secret_xxx') }) ```
533
+ * @example ``` <stripe-payment-element intent-client-secret="pi_xxx_secret_xxx" /> ```
534
+ */
535
+ "intentClientSecret"?: string;
536
+ /**
537
+ * Default submit handle type. If you want to use `setupIntent`, should update this attribute.
538
+ * @default 'payment'
539
+ */
540
+ "intentType": IntentType;
541
+ /**
542
+ * Your Stripe publishable API key.
543
+ */
544
+ "publishableKey": string;
545
+ /**
546
+ * Set error message
547
+ * @param errorMessage string
548
+ * @returns
549
+ * @example ``` const stripeElement = document.createElement('stripe-payment-element'); customElements .whenDefined('stripe-payment-element') .then(() => { stripeElement.setErrorMessage('Payment failed') }) ```
550
+ */
551
+ "setErrorMessage": (errorMessage: string) => Promise<this>;
552
+ /**
553
+ * Payment sheet title By default we recommended to use these string - 'Add your payment information' -> PaymentSheet / PaymentFlow(Android) - 'Add a card' -> PaymentFlow(iOS) These strings will translated automatically by this library.
554
+ * @default 'Add your payment information'
555
+ */
556
+ "sheetTitle": string;
557
+ /**
558
+ * The component will provide a function to call the `stripe.confirmPayment` API. If you want to customize the behavior, should set false. And listen the 'formSubmit' event on the element
559
+ * @default true
560
+ */
561
+ "shouldUseDefaultFormSubmitAction": boolean;
562
+ /**
563
+ * Optional. Making API calls for connected accounts
564
+ * @info https://stripe.com/docs/connect/authentication
565
+ */
566
+ "stripeAccount": string;
567
+ /**
568
+ * Stripe.js class loaded handler
569
+ */
570
+ "stripeDidLoaded"?: StripeDidLoadedHandler;
571
+ /**
572
+ * Update the form submit progress
573
+ * @param progress
574
+ * @returns
575
+ * @example ``` const stripeElement = document.createElement('stripe-payment-element'); customElements .whenDefined('stripe-payment-element') .then(() => { stripeElement.updateProgress('success') }) ```
576
+ */
577
+ "updateProgress": (progress: ProgressStatus) => Promise<this>;
578
+ }
215
579
  interface StripePaymentRequestButton {
216
580
  /**
217
581
  * Overwrite the application name that registered For wrapper library (like Capacitor)
@@ -275,6 +639,10 @@ export namespace Components {
275
639
  "stripeDidLoaded"?: StripeDidLoadedHandler;
276
640
  }
277
641
  }
642
+ export interface StripeAddressElementCustomEvent<T> extends CustomEvent<T> {
643
+ detail: T;
644
+ target: HTMLStripeAddressElementElement;
645
+ }
278
646
  export interface StripeCardElementCustomEvent<T> extends CustomEvent<T> {
279
647
  detail: T;
280
648
  target: HTMLStripeCardElementElement;
@@ -283,15 +651,49 @@ export interface StripeCardElementModalCustomEvent<T> extends CustomEvent<T> {
283
651
  detail: T;
284
652
  target: HTMLStripeCardElementModalElement;
285
653
  }
286
- export interface StripeModalCustomEvent<T> extends CustomEvent<T> {
654
+ export interface StripeCurrencySelectorCustomEvent<T> extends CustomEvent<T> {
287
655
  detail: T;
288
- target: HTMLStripeModalElement;
656
+ target: HTMLStripeCurrencySelectorElement;
657
+ }
658
+ export interface StripeExpressCheckoutElementCustomEvent<T> extends CustomEvent<T> {
659
+ detail: T;
660
+ target: HTMLStripeExpressCheckoutElementElement;
661
+ }
662
+ export interface StripeLinkAuthenticationElementCustomEvent<T> extends CustomEvent<T> {
663
+ detail: T;
664
+ target: HTMLStripeLinkAuthenticationElementElement;
665
+ }
666
+ export interface StripeModalCustomEvent<T> extends CustomEvent<T> {
667
+ detail: T;
668
+ target: HTMLStripeModalElement;
669
+ }
670
+ export interface StripePaymentElementCustomEvent<T> extends CustomEvent<T> {
671
+ detail: T;
672
+ target: HTMLStripePaymentElementElement;
289
673
  }
290
674
  export interface StripePaymentRequestButtonCustomEvent<T> extends CustomEvent<T> {
291
675
  detail: T;
292
676
  target: HTMLStripePaymentRequestButtonElement;
293
677
  }
294
678
  declare global {
679
+ interface HTMLStripeAddressElementElementEventMap {
680
+ "stripeLoaded": StripeLoadedEvent;
681
+ "formSubmit": AddressSubmitEvent;
682
+ }
683
+ interface HTMLStripeAddressElementElement extends Components.StripeAddressElement, HTMLStencilElement {
684
+ addEventListener<K extends keyof HTMLStripeAddressElementElementEventMap>(type: K, listener: (this: HTMLStripeAddressElementElement, ev: StripeAddressElementCustomEvent<HTMLStripeAddressElementElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
685
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
686
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
687
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
688
+ removeEventListener<K extends keyof HTMLStripeAddressElementElementEventMap>(type: K, listener: (this: HTMLStripeAddressElementElement, ev: StripeAddressElementCustomEvent<HTMLStripeAddressElementElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
689
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
690
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
691
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
692
+ }
693
+ var HTMLStripeAddressElementElement: {
694
+ prototype: HTMLStripeAddressElementElement;
695
+ new (): HTMLStripeAddressElementElement;
696
+ };
295
697
  interface HTMLStripeCardElementElementEventMap {
296
698
  "stripeLoaded": StripeLoadedEvent;
297
699
  "formSubmit": FormSubmitEvent;
@@ -328,6 +730,80 @@ declare global {
328
730
  prototype: HTMLStripeCardElementModalElement;
329
731
  new (): HTMLStripeCardElementModalElement;
330
732
  };
733
+ interface HTMLStripeCurrencySelectorElementEventMap {
734
+ "stripeLoaded": StripeLoadedEvent;
735
+ "currencyChange": CurrencySelectorChangeEvent;
736
+ }
737
+ /**
738
+ * Stripe Currency Selector Element
739
+ * Allows customers to select their preferred currency for Adaptive Pricing
740
+ * @info https://docs.stripe.com/elements/currency-selector-element
741
+ */
742
+ interface HTMLStripeCurrencySelectorElement extends Components.StripeCurrencySelector, HTMLStencilElement {
743
+ addEventListener<K extends keyof HTMLStripeCurrencySelectorElementEventMap>(type: K, listener: (this: HTMLStripeCurrencySelectorElement, ev: StripeCurrencySelectorCustomEvent<HTMLStripeCurrencySelectorElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
744
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
745
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
746
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
747
+ removeEventListener<K extends keyof HTMLStripeCurrencySelectorElementEventMap>(type: K, listener: (this: HTMLStripeCurrencySelectorElement, ev: StripeCurrencySelectorCustomEvent<HTMLStripeCurrencySelectorElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
748
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
749
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
750
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
751
+ }
752
+ var HTMLStripeCurrencySelectorElement: {
753
+ prototype: HTMLStripeCurrencySelectorElement;
754
+ new (): HTMLStripeCurrencySelectorElement;
755
+ };
756
+ interface HTMLStripeExpressCheckoutElementElementEventMap {
757
+ "stripeLoaded": StripeLoadedEvent;
758
+ "confirm": StripeExpressCheckoutElementConfirmEvent;
759
+ "expressCheckoutClick": StripeExpressCheckoutElementClickEvent;
760
+ "cancel": void;
761
+ "defaultConfirmResult": DefaultFormSubmitResult;
762
+ }
763
+ /**
764
+ * Express Checkout Element Component
765
+ * Provides one-click payment methods (Apple Pay, Google Pay, Link, PayPal, etc.)
766
+ * @example ```html
767
+ * <stripe-express-checkout-element
768
+ * publishable-key="pk_test_..."
769
+ * client-secret="pi_..."
770
+ * amount="1099"
771
+ * currency="usd"
772
+ * />
773
+ * ```
774
+ */
775
+ interface HTMLStripeExpressCheckoutElementElement extends Components.StripeExpressCheckoutElement, HTMLStencilElement {
776
+ addEventListener<K extends keyof HTMLStripeExpressCheckoutElementElementEventMap>(type: K, listener: (this: HTMLStripeExpressCheckoutElementElement, ev: StripeExpressCheckoutElementCustomEvent<HTMLStripeExpressCheckoutElementElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
777
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
778
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
779
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
780
+ removeEventListener<K extends keyof HTMLStripeExpressCheckoutElementElementEventMap>(type: K, listener: (this: HTMLStripeExpressCheckoutElementElement, ev: StripeExpressCheckoutElementCustomEvent<HTMLStripeExpressCheckoutElementElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
781
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
782
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
783
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
784
+ }
785
+ var HTMLStripeExpressCheckoutElementElement: {
786
+ prototype: HTMLStripeExpressCheckoutElementElement;
787
+ new (): HTMLStripeExpressCheckoutElementElement;
788
+ };
789
+ interface HTMLStripeLinkAuthenticationElementElementEventMap {
790
+ "stripeLoaded": StripeLoadedEvent;
791
+ "linkAuthenticationChange": LinkAuthenticationElementChangeEvent;
792
+ }
793
+ interface HTMLStripeLinkAuthenticationElementElement extends Components.StripeLinkAuthenticationElement, HTMLStencilElement {
794
+ addEventListener<K extends keyof HTMLStripeLinkAuthenticationElementElementEventMap>(type: K, listener: (this: HTMLStripeLinkAuthenticationElementElement, ev: StripeLinkAuthenticationElementCustomEvent<HTMLStripeLinkAuthenticationElementElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
795
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
796
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
797
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
798
+ removeEventListener<K extends keyof HTMLStripeLinkAuthenticationElementElementEventMap>(type: K, listener: (this: HTMLStripeLinkAuthenticationElementElement, ev: StripeLinkAuthenticationElementCustomEvent<HTMLStripeLinkAuthenticationElementElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
799
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
800
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
801
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
802
+ }
803
+ var HTMLStripeLinkAuthenticationElementElement: {
804
+ prototype: HTMLStripeLinkAuthenticationElementElement;
805
+ new (): HTMLStripeLinkAuthenticationElementElement;
806
+ };
331
807
  interface HTMLStripeModalElementEventMap {
332
808
  "close": any;
333
809
  }
@@ -345,6 +821,26 @@ declare global {
345
821
  prototype: HTMLStripeModalElement;
346
822
  new (): HTMLStripeModalElement;
347
823
  };
824
+ interface HTMLStripePaymentElementElementEventMap {
825
+ "stripeLoaded": StripeLoadedEvent;
826
+ "formSubmit": PaymentElementSubmitEvent;
827
+ "defaultFormSubmitResult": DefaultFormSubmitResult;
828
+ "checkoutSessionConfirmResult": CheckoutSessionFormSubmitResult;
829
+ }
830
+ interface HTMLStripePaymentElementElement extends Components.StripePaymentElement, HTMLStencilElement {
831
+ addEventListener<K extends keyof HTMLStripePaymentElementElementEventMap>(type: K, listener: (this: HTMLStripePaymentElementElement, ev: StripePaymentElementCustomEvent<HTMLStripePaymentElementElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
832
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
833
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
834
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
835
+ removeEventListener<K extends keyof HTMLStripePaymentElementElementEventMap>(type: K, listener: (this: HTMLStripePaymentElementElement, ev: StripePaymentElementCustomEvent<HTMLStripePaymentElementElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
836
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
837
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
838
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
839
+ }
840
+ var HTMLStripePaymentElementElement: {
841
+ prototype: HTMLStripePaymentElementElement;
842
+ new (): HTMLStripePaymentElementElement;
843
+ };
348
844
  interface HTMLStripePaymentRequestButtonElementEventMap {
349
845
  "stripeLoaded": StripeLoadedEvent;
350
846
  }
@@ -363,13 +859,80 @@ declare global {
363
859
  new (): HTMLStripePaymentRequestButtonElement;
364
860
  };
365
861
  interface HTMLElementTagNameMap {
862
+ "stripe-address-element": HTMLStripeAddressElementElement;
366
863
  "stripe-card-element": HTMLStripeCardElementElement;
367
864
  "stripe-card-element-modal": HTMLStripeCardElementModalElement;
865
+ "stripe-currency-selector": HTMLStripeCurrencySelectorElement;
866
+ "stripe-express-checkout-element": HTMLStripeExpressCheckoutElementElement;
867
+ "stripe-link-authentication-element": HTMLStripeLinkAuthenticationElementElement;
368
868
  "stripe-modal": HTMLStripeModalElement;
869
+ "stripe-payment-element": HTMLStripePaymentElementElement;
369
870
  "stripe-payment-request-button": HTMLStripePaymentRequestButtonElement;
370
871
  }
371
872
  }
372
873
  declare namespace LocalJSX {
874
+ interface StripeAddressElement {
875
+ /**
876
+ * Allowed countries (array of country codes)
877
+ */
878
+ "allowedCountries"?: string[];
879
+ /**
880
+ * Overwrite the application name that registered For wrapper library (like Capacitor)
881
+ * @default 'stripe-pwa-elements'
882
+ */
883
+ "applicationName"?: string;
884
+ /**
885
+ * Submit button label By default we recommended to use these string - 'Save' or 'Continue' These strings will translated automatically by this library.
886
+ * @default 'Save'
887
+ */
888
+ "buttonLabel"?: string;
889
+ /**
890
+ * Default country code (e.g., 'US', 'JP', 'GB')
891
+ */
892
+ "defaultCountry"?: string;
893
+ /**
894
+ * Form submit event handler
895
+ */
896
+ "handleSubmit"?: AddressSubmitHandler;
897
+ /**
898
+ * Address mode: 'shipping' or 'billing'
899
+ * @default 'billing'
900
+ */
901
+ "mode"?: 'shipping' | 'billing';
902
+ /**
903
+ * Form submit event
904
+ * @example ``` const stripeElement = document.createElement('stripe-address-element'); customElements .whenDefined('stripe-address-element') .then(() => { stripeElement .addEventListener('formSubmit', async props => { const { detail: { address } } = props; console.log('Address submitted:', address); }) }) ```
905
+ */
906
+ "onFormSubmit"?: (event: StripeAddressElementCustomEvent<AddressSubmitEvent>) => void;
907
+ /**
908
+ * Stripe Client loaded event
909
+ * @example ``` const stripeElement = document.createElement('stripe-address-element'); customElements .whenDefined('stripe-address-element') .then(() => { stripeElement .addEventListener('stripeLoaded', async ({ detail: {stripe} }) => { console.log('Stripe loaded:', stripe); }); }) ```
910
+ */
911
+ "onStripeLoaded"?: (event: StripeAddressElementCustomEvent<StripeLoadedEvent>) => void;
912
+ /**
913
+ * Your Stripe publishable API key.
914
+ */
915
+ "publishableKey"?: string;
916
+ /**
917
+ * Form title By default we recommended to use these string - 'Shipping address' for shipping mode - 'Billing address' for billing mode These strings will translated automatically by this library.
918
+ * @default 'Billing address'
919
+ */
920
+ "sheetTitle"?: string;
921
+ /**
922
+ * Show the form label
923
+ * @default false
924
+ */
925
+ "showLabel"?: boolean;
926
+ /**
927
+ * Optional. Making API calls for connected accounts
928
+ * @info https://stripe.com/docs/connect/authentication
929
+ */
930
+ "stripeAccount"?: string;
931
+ /**
932
+ * Stripe.js class loaded handler
933
+ */
934
+ "stripeDidLoaded"?: StripeDidLoadedHandler;
935
+ }
373
936
  interface StripeCardElement {
374
937
  /**
375
938
  * Overwrite the application name that registered For wrapper library (like Capacitor)
@@ -518,6 +1081,171 @@ declare namespace LocalJSX {
518
1081
  */
519
1082
  "zip"?: boolean;
520
1083
  }
1084
+ /**
1085
+ * Stripe Currency Selector Element
1086
+ * Allows customers to select their preferred currency for Adaptive Pricing
1087
+ * @info https://docs.stripe.com/elements/currency-selector-element
1088
+ */
1089
+ interface StripeCurrencySelector {
1090
+ /**
1091
+ * Overwrite the application name that registered For wrapper library (like Capacitor)
1092
+ * @default 'stripe-pwa-elements'
1093
+ */
1094
+ "applicationName"?: string;
1095
+ /**
1096
+ * The client secret from Checkout Session Required for Currency Selector Element
1097
+ * @info https://docs.stripe.com/elements/currency-selector-element
1098
+ */
1099
+ "clientSecret"?: string;
1100
+ /**
1101
+ * Currency change event handler
1102
+ */
1103
+ "handleCurrencyChange"?: CurrencySelectorChangeHandler;
1104
+ /**
1105
+ * Currency change event
1106
+ * @example ``` const stripeCurrencySelector = document.createElement('stripe-currency-selector'); customElements .whenDefined('stripe-currency-selector') .then(() => { stripeCurrencySelector .addEventListener('currencyChange', async props => { const { detail: { currency } } = props; console.log('Currency changed:', currency); }) }) ```
1107
+ */
1108
+ "onCurrencyChange"?: (event: StripeCurrencySelectorCustomEvent<CurrencySelectorChangeEvent>) => void;
1109
+ /**
1110
+ * Stripe Client loaded event
1111
+ * @example ``` const stripeCurrencySelector = document.createElement('stripe-currency-selector'); customElements .whenDefined('stripe-currency-selector') .then(() => { stripeCurrencySelector .addEventListener('stripeLoaded', async ({ detail: {stripe} }) => { console.log('Stripe loaded:', stripe); }); }) ```
1112
+ */
1113
+ "onStripeLoaded"?: (event: StripeCurrencySelectorCustomEvent<StripeLoadedEvent>) => void;
1114
+ /**
1115
+ * Your Stripe publishable API key.
1116
+ */
1117
+ "publishableKey"?: string;
1118
+ /**
1119
+ * Optional. Making API calls for connected accounts
1120
+ * @info https://stripe.com/docs/connect/authentication
1121
+ */
1122
+ "stripeAccount"?: string;
1123
+ /**
1124
+ * Stripe.js class loaded handler
1125
+ */
1126
+ "stripeDidLoaded"?: StripeDidLoadedHandler;
1127
+ }
1128
+ /**
1129
+ * Express Checkout Element Component
1130
+ * Provides one-click payment methods (Apple Pay, Google Pay, Link, PayPal, etc.)
1131
+ * @example ```html
1132
+ * <stripe-express-checkout-element
1133
+ * publishable-key="pk_test_..."
1134
+ * client-secret="pi_..."
1135
+ * amount="1099"
1136
+ * currency="usd"
1137
+ * />
1138
+ * ```
1139
+ */
1140
+ interface StripeExpressCheckoutElement {
1141
+ /**
1142
+ * Payment amount in cents (e.g., 1099 for $10.99)
1143
+ */
1144
+ "amount"?: number;
1145
+ /**
1146
+ * Overwrite the application name that registered For wrapper library (like Capacitor)
1147
+ * @default 'stripe-pwa-elements'
1148
+ */
1149
+ "applicationName"?: string;
1150
+ /**
1151
+ * Button height in pixels (e.g., '48px')
1152
+ */
1153
+ "buttonHeight"?: string;
1154
+ /**
1155
+ * The client secret from paymentIntent.create or setupIntent.create response
1156
+ * @example ``` const element = document.createElement('stripe-express-checkout-element'); customElements .whenDefined('stripe-express-checkout-element') .then(() => { element.setAttribute('client-secret', 'pi_xxx_secret_xxx') }) ```
1157
+ */
1158
+ "clientSecret"?: string;
1159
+ /**
1160
+ * Three-letter ISO currency code (e.g., 'usd', 'eur')
1161
+ */
1162
+ "currency"?: string;
1163
+ /**
1164
+ * Default submit handle type. If you want to use `setupIntent`, should update this attribute.
1165
+ * @default 'payment'
1166
+ */
1167
+ "intentType"?: IntentType;
1168
+ /**
1169
+ * Express Checkout cancel event Fired when user cancels the express checkout flow
1170
+ */
1171
+ "onCancel"?: (event: StripeExpressCheckoutElementCustomEvent<void>) => void;
1172
+ /**
1173
+ * Express Checkout confirm event Fired when user completes the express checkout flow
1174
+ * @example ``` const element = document.createElement('stripe-express-checkout-element'); customElements .whenDefined('stripe-express-checkout-element') .then(() => { element.addEventListener('confirm', async ({ detail }) => { console.log('Payment confirmed', detail) }) }) ```
1175
+ */
1176
+ "onConfirm"?: (event: StripeExpressCheckoutElementCustomEvent<StripeExpressCheckoutElementConfirmEvent>) => void;
1177
+ /**
1178
+ * Receive the result of default confirm action
1179
+ * @example ``` const element = document.createElement('stripe-express-checkout-element'); customElements .whenDefined('stripe-express-checkout-element') .then(() => { element.addEventListener('defaultConfirmResult', async ({detail}) => { if (detail instanceof Error) { console.error(detail) } else { console.log(detail) } }) }) ```
1180
+ */
1181
+ "onDefaultConfirmResult"?: (event: StripeExpressCheckoutElementCustomEvent<DefaultFormSubmitResult>) => void;
1182
+ /**
1183
+ * Express Checkout click event Fired when user clicks on an express checkout button
1184
+ * @example ``` const element = document.createElement('stripe-express-checkout-element'); customElements .whenDefined('stripe-express-checkout-element') .then(() => { element.addEventListener('expressCheckoutClick', async ({ detail }) => { console.log('Button clicked', detail) }) }) ```
1185
+ */
1186
+ "onExpressCheckoutClick"?: (event: StripeExpressCheckoutElementCustomEvent<StripeExpressCheckoutElementClickEvent>) => void;
1187
+ /**
1188
+ * Stripe Client loaded event
1189
+ * @example ``` const element = document.createElement('stripe-express-checkout-element'); customElements .whenDefined('stripe-express-checkout-element') .then(() => { element.addEventListener('stripeLoaded', async ({ detail: {stripe} }) => { console.log('Stripe loaded', stripe) }); }) ```
1190
+ */
1191
+ "onStripeLoaded"?: (event: StripeExpressCheckoutElementCustomEvent<StripeLoadedEvent>) => void;
1192
+ /**
1193
+ * Your Stripe publishable API key.
1194
+ */
1195
+ "publishableKey"?: string;
1196
+ /**
1197
+ * The component will provide a function to call the confirmation API. If you want to customize the behavior, should set false. And listen the 'confirm' event on the element
1198
+ * @default true
1199
+ */
1200
+ "shouldUseDefaultConfirmAction"?: boolean;
1201
+ /**
1202
+ * Optional. Making API calls for connected accounts
1203
+ * @info https://stripe.com/docs/connect/authentication
1204
+ */
1205
+ "stripeAccount"?: string;
1206
+ /**
1207
+ * Stripe.js class loaded handler
1208
+ */
1209
+ "stripeDidLoaded"?: StripeDidLoadedHandler;
1210
+ }
1211
+ interface StripeLinkAuthenticationElement {
1212
+ /**
1213
+ * Overwrite the application name that registered For wrapper library (like Capacitor)
1214
+ * @default 'stripe-pwa-elements'
1215
+ */
1216
+ "applicationName"?: string;
1217
+ /**
1218
+ * Default email value to prefill the element
1219
+ */
1220
+ "defaultEmail"?: string;
1221
+ /**
1222
+ * Link Authentication Element change handler
1223
+ */
1224
+ "handleChange"?: LinkAuthenticationElementChangeHandler;
1225
+ /**
1226
+ * Link Authentication Element change event Emitted when the email value changes
1227
+ * @example ``` const stripeElement = document.createElement('stripe-link-authentication-element'); customElements .whenDefined('stripe-link-authentication-element') .then(() => { stripeElement .addEventListener('linkAuthenticationChange', async ({ detail }) => { console.log('Email changed:', detail.email); }) }) ```
1228
+ */
1229
+ "onLinkAuthenticationChange"?: (event: StripeLinkAuthenticationElementCustomEvent<LinkAuthenticationElementChangeEvent>) => void;
1230
+ /**
1231
+ * Stripe Client loaded event
1232
+ * @example ``` const stripeElement = document.createElement('stripe-link-authentication-element'); customElements .whenDefined('stripe-link-authentication-element') .then(() => { stripeElement .addEventListener('stripeLoaded', async ({ detail: {stripe} }) => { console.log('Stripe loaded:', stripe); }); }) ```
1233
+ */
1234
+ "onStripeLoaded"?: (event: StripeLinkAuthenticationElementCustomEvent<StripeLoadedEvent>) => void;
1235
+ /**
1236
+ * Your Stripe publishable API key.
1237
+ */
1238
+ "publishableKey"?: string;
1239
+ /**
1240
+ * Optional. Making API calls for connected accounts
1241
+ * @info https://stripe.com/docs/connect/authentication
1242
+ */
1243
+ "stripeAccount"?: string;
1244
+ /**
1245
+ * Stripe.js class loaded handler
1246
+ */
1247
+ "stripeDidLoaded"?: StripeDidLoadedHandler;
1248
+ }
521
1249
  interface StripeModal {
522
1250
  "onClose"?: (event: StripeModalCustomEvent<any>) => void;
523
1251
  /**
@@ -531,6 +1259,81 @@ declare namespace LocalJSX {
531
1259
  */
532
1260
  "showCloseButton"?: boolean;
533
1261
  }
1262
+ interface StripePaymentElement {
1263
+ /**
1264
+ * Overwrite the application name that registered For wrapper library (like Capacitor)
1265
+ * @default 'stripe-pwa-elements'
1266
+ */
1267
+ "applicationName"?: string;
1268
+ /**
1269
+ * Submit button label By default we recommended to use these string - 'Pay' -> PaymentSheet - 'Add' -> PaymentFlow(Android) - 'Add card' -> PaymentFlow(iOS) - 'Add a card' -> PaymentFlow(iOS) These strings will translated automatically by this library.
1270
+ * @default 'Pay'
1271
+ */
1272
+ "buttonLabel"?: string;
1273
+ /**
1274
+ * The client secret from checkout session response Use this for Checkout Session mode instead of intentClientSecret When this prop is set, the component will use Checkout Session API
1275
+ * @example ``` const stripeElement = document.createElement('stripe-payment-element'); customElements .whenDefined('stripe-payment-element') .then(() => { stripeElement.initStripeWithCheckoutSession('pk_test_xxx', 'cs_xxx_secret_xxx') }) ```
1276
+ */
1277
+ "checkoutSessionClientSecret"?: string;
1278
+ /**
1279
+ * Form submit event handler
1280
+ */
1281
+ "handleSubmit"?: PaymentElementSubmitHandler;
1282
+ /**
1283
+ * The client secret from paymentIntent.create or setupIntent.create response Use this for Payment Intent / Setup Intent mode
1284
+ * @example ``` const stripeElement = document.createElement('stripe-payment-element'); customElements .whenDefined('stripe-payment-element') .then(() => { stripeElement.setAttribute('intent-client-secret', 'pi_xxx_secret_xxx') }) ```
1285
+ * @example ``` <stripe-payment-element intent-client-secret="pi_xxx_secret_xxx" /> ```
1286
+ */
1287
+ "intentClientSecret"?: string;
1288
+ /**
1289
+ * Default submit handle type. If you want to use `setupIntent`, should update this attribute.
1290
+ * @default 'payment'
1291
+ */
1292
+ "intentType"?: IntentType;
1293
+ /**
1294
+ * Receive the result of checkout session confirm This event is emitted when using Checkout Session mode
1295
+ * @example ``` const stripeElement = document.createElement('stripe-payment-element'); customElements .whenDefined('stripe-payment-element') .then(() => { stripeElement.addEventListener('checkoutSessionConfirmResult', async ({detail}) => { if (detail instanceof Error) { console.error(detail) } else if (detail.type === 'success') { console.log('Payment successful:', detail.session) } else { console.error('Payment failed:', detail.error) } }) }) ```
1296
+ */
1297
+ "onCheckoutSessionConfirmResult"?: (event: StripePaymentElementCustomEvent<CheckoutSessionFormSubmitResult>) => void;
1298
+ /**
1299
+ * Receive the result of defaultFormSubmit event This event is emitted when using Payment Intent / Setup Intent mode
1300
+ * @example ``` const stripeElement = document.createElement('stripe-payment-element'); customElements .whenDefined('stripe-payment-element') .then(() => { stripeElement.addEventListener('defaultFormSubmitResult', async ({detail}) => { if (detail instanceof Error) { console.error(detail) } else { console.log(detail) } }) }) ```
1301
+ */
1302
+ "onDefaultFormSubmitResult"?: (event: StripePaymentElementCustomEvent<DefaultFormSubmitResult>) => void;
1303
+ /**
1304
+ * Form submit event
1305
+ * @example ``` const stripeElement = document.createElement('stripe-payment-element'); customElements .whenDefined('stripe-payment-element') .then(() => { stripeElement .addEventListener('formSubmit', async props => { const { detail: { stripe, elements } } = props; console.log('Form submitted', stripe, elements); }) }) ```
1306
+ */
1307
+ "onFormSubmit"?: (event: StripePaymentElementCustomEvent<PaymentElementSubmitEvent>) => void;
1308
+ /**
1309
+ * Stripe Client loaded event
1310
+ * @example ``` const stripeElement = document.createElement('stripe-payment-element'); customElements .whenDefined('stripe-payment-element') .then(() => { stripeElement .addEventListener('stripeLoaded', async ({ detail: {stripe} }) => { console.log('Stripe loaded:', stripe); }); }) ```
1311
+ */
1312
+ "onStripeLoaded"?: (event: StripePaymentElementCustomEvent<StripeLoadedEvent>) => void;
1313
+ /**
1314
+ * Your Stripe publishable API key.
1315
+ */
1316
+ "publishableKey"?: string;
1317
+ /**
1318
+ * Payment sheet title By default we recommended to use these string - 'Add your payment information' -> PaymentSheet / PaymentFlow(Android) - 'Add a card' -> PaymentFlow(iOS) These strings will translated automatically by this library.
1319
+ * @default 'Add your payment information'
1320
+ */
1321
+ "sheetTitle"?: string;
1322
+ /**
1323
+ * The component will provide a function to call the `stripe.confirmPayment` API. If you want to customize the behavior, should set false. And listen the 'formSubmit' event on the element
1324
+ * @default true
1325
+ */
1326
+ "shouldUseDefaultFormSubmitAction"?: boolean;
1327
+ /**
1328
+ * Optional. Making API calls for connected accounts
1329
+ * @info https://stripe.com/docs/connect/authentication
1330
+ */
1331
+ "stripeAccount"?: string;
1332
+ /**
1333
+ * Stripe.js class loaded handler
1334
+ */
1335
+ "stripeDidLoaded"?: StripeDidLoadedHandler;
1336
+ }
534
1337
  interface StripePaymentRequestButton {
535
1338
  /**
536
1339
  * Overwrite the application name that registered For wrapper library (like Capacitor)
@@ -572,9 +1375,14 @@ declare namespace LocalJSX {
572
1375
  "stripeDidLoaded"?: StripeDidLoadedHandler;
573
1376
  }
574
1377
  interface IntrinsicElements {
1378
+ "stripe-address-element": StripeAddressElement;
575
1379
  "stripe-card-element": StripeCardElement;
576
1380
  "stripe-card-element-modal": StripeCardElementModal;
1381
+ "stripe-currency-selector": StripeCurrencySelector;
1382
+ "stripe-express-checkout-element": StripeExpressCheckoutElement;
1383
+ "stripe-link-authentication-element": StripeLinkAuthenticationElement;
577
1384
  "stripe-modal": StripeModal;
1385
+ "stripe-payment-element": StripePaymentElement;
578
1386
  "stripe-payment-request-button": StripePaymentRequestButton;
579
1387
  }
580
1388
  }
@@ -582,9 +1390,31 @@ export { LocalJSX as JSX };
582
1390
  declare module "@stencil/core" {
583
1391
  export namespace JSX {
584
1392
  interface IntrinsicElements {
1393
+ "stripe-address-element": LocalJSX.StripeAddressElement & JSXBase.HTMLAttributes<HTMLStripeAddressElementElement>;
585
1394
  "stripe-card-element": LocalJSX.StripeCardElement & JSXBase.HTMLAttributes<HTMLStripeCardElementElement>;
586
1395
  "stripe-card-element-modal": LocalJSX.StripeCardElementModal & JSXBase.HTMLAttributes<HTMLStripeCardElementModalElement>;
1396
+ /**
1397
+ * Stripe Currency Selector Element
1398
+ * Allows customers to select their preferred currency for Adaptive Pricing
1399
+ * @info https://docs.stripe.com/elements/currency-selector-element
1400
+ */
1401
+ "stripe-currency-selector": LocalJSX.StripeCurrencySelector & JSXBase.HTMLAttributes<HTMLStripeCurrencySelectorElement>;
1402
+ /**
1403
+ * Express Checkout Element Component
1404
+ * Provides one-click payment methods (Apple Pay, Google Pay, Link, PayPal, etc.)
1405
+ * @example ```html
1406
+ * <stripe-express-checkout-element
1407
+ * publishable-key="pk_test_..."
1408
+ * client-secret="pi_..."
1409
+ * amount="1099"
1410
+ * currency="usd"
1411
+ * />
1412
+ * ```
1413
+ */
1414
+ "stripe-express-checkout-element": LocalJSX.StripeExpressCheckoutElement & JSXBase.HTMLAttributes<HTMLStripeExpressCheckoutElementElement>;
1415
+ "stripe-link-authentication-element": LocalJSX.StripeLinkAuthenticationElement & JSXBase.HTMLAttributes<HTMLStripeLinkAuthenticationElementElement>;
587
1416
  "stripe-modal": LocalJSX.StripeModal & JSXBase.HTMLAttributes<HTMLStripeModalElement>;
1417
+ "stripe-payment-element": LocalJSX.StripePaymentElement & JSXBase.HTMLAttributes<HTMLStripePaymentElementElement>;
588
1418
  "stripe-payment-request-button": LocalJSX.StripePaymentRequestButton & JSXBase.HTMLAttributes<HTMLStripePaymentRequestButtonElement>;
589
1419
  }
590
1420
  }