@stripe/stripe-js 3.0.3 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +10 -23
  2. package/dist/stripe.js +1 -1
  3. package/dist/stripe.mjs +1 -1
  4. package/package.json +4 -26
  5. package/{dist/pure.js → pure/index.js} +1 -1
  6. package/{dist/pure.mjs → pure/index.mjs} +1 -1
  7. package/types/.eslintrc.yml +0 -3
  8. package/types/api/bank-accounts.d.ts +0 -61
  9. package/types/api/cards.d.ts +0 -130
  10. package/types/api/financial-connections.d.ts +0 -232
  11. package/types/api/index.d.ts +0 -11
  12. package/types/api/orders.d.ts +0 -122
  13. package/types/api/payment-intents.d.ts +0 -330
  14. package/types/api/payment-methods.d.ts +0 -452
  15. package/types/api/setup-intents.d.ts +0 -184
  16. package/types/api/shared.d.ts +0 -125
  17. package/types/api/sources.d.ts +0 -1045
  18. package/types/api/tokens.d.ts +0 -639
  19. package/types/api/verification-sessions.d.ts +0 -9
  20. package/types/index.d.ts +0 -17
  21. package/types/pure.d.ts +0 -5
  22. package/types/stripe-js/checkout.d.ts +0 -153
  23. package/types/stripe-js/custom-checkout.d.ts +0 -220
  24. package/types/stripe-js/elements/address.d.ts +0 -261
  25. package/types/stripe-js/elements/affirm-message.d.ts +0 -65
  26. package/types/stripe-js/elements/afterpay-clearpay-message.d.ts +0 -119
  27. package/types/stripe-js/elements/apple-pay.d.ts +0 -156
  28. package/types/stripe-js/elements/au-bank-account.d.ts +0 -138
  29. package/types/stripe-js/elements/base.d.ts +0 -264
  30. package/types/stripe-js/elements/card-cvc.d.ts +0 -119
  31. package/types/stripe-js/elements/card-expiry.d.ts +0 -119
  32. package/types/stripe-js/elements/card-number.d.ts +0 -200
  33. package/types/stripe-js/elements/card.d.ts +0 -226
  34. package/types/stripe-js/elements/cart.d.ts +0 -224
  35. package/types/stripe-js/elements/eps-bank.d.ts +0 -140
  36. package/types/stripe-js/elements/express-checkout.d.ts +0 -446
  37. package/types/stripe-js/elements/fpx-bank.d.ts +0 -134
  38. package/types/stripe-js/elements/iban.d.ts +0 -135
  39. package/types/stripe-js/elements/ideal-bank.d.ts +0 -140
  40. package/types/stripe-js/elements/index.d.ts +0 -22
  41. package/types/stripe-js/elements/issuing/index.d.ts +0 -5
  42. package/types/stripe-js/elements/issuing/issuing-card-copy-button.d.ts +0 -37
  43. package/types/stripe-js/elements/issuing/issuing-card-cvc-display.d.ts +0 -32
  44. package/types/stripe-js/elements/issuing/issuing-card-expiry-display.d.ts +0 -32
  45. package/types/stripe-js/elements/issuing/issuing-card-number-display.d.ts +0 -40
  46. package/types/stripe-js/elements/issuing/issuing-card-pin-display.d.ts +0 -32
  47. package/types/stripe-js/elements/link-authentication.d.ts +0 -158
  48. package/types/stripe-js/elements/p24-bank.d.ts +0 -140
  49. package/types/stripe-js/elements/payment-method-messaging.d.ts +0 -98
  50. package/types/stripe-js/elements/payment-request-button.d.ts +0 -151
  51. package/types/stripe-js/elements/payment.d.ts +0 -275
  52. package/types/stripe-js/elements/shipping-address.d.ts +0 -215
  53. package/types/stripe-js/elements-group.d.ts +0 -1129
  54. package/types/stripe-js/embedded-checkout.d.ts +0 -30
  55. package/types/stripe-js/ephemeral-keys.d.ts +0 -3
  56. package/types/stripe-js/financial-connections.d.ts +0 -19
  57. package/types/stripe-js/index.d.ts +0 -13
  58. package/types/stripe-js/orders.d.ts +0 -9
  59. package/types/stripe-js/payment-intents.d.ts +0 -1465
  60. package/types/stripe-js/payment-request.d.ts +0 -529
  61. package/types/stripe-js/setup-intents.d.ts +0 -250
  62. package/types/stripe-js/stripe.d.ts +0 -1472
  63. package/types/stripe-js/token-and-sources.d.ts +0 -110
  64. package/types/utils.d.ts +0 -2
  65. /package/{dist/pure.d.mts → pure/index.d.mts} +0 -0
  66. /package/{dist/pure.d.ts → pure/index.d.ts} +0 -0
@@ -1,30 +0,0 @@
1
- export interface StripeEmbeddedCheckoutOptions {
2
- /**
3
- * The client secret of the [Checkout Session](https://stripe.com/docs/api/checkout/sessions).
4
- */
5
- clientSecret: string;
6
- /**
7
- * onComplete is called when the Checkout Session completes successfully.
8
- * You can use it to unmount Embedded Checkout and render a custom success UI.
9
- */
10
- onComplete?: () => void;
11
- }
12
-
13
- export interface StripeEmbeddedCheckout {
14
- /**
15
- * The `embeddedCheckout.mount` method attaches your Embedded Checkout to the DOM.
16
- * `mount` accepts either a CSS Selector (e.g., `'#checkout'`) or a DOM element.
17
- */
18
- mount(location: string | HTMLElement): void;
19
- /**
20
- * Unmounts Embedded Checkout from the DOM.
21
- * Call `embeddedCheckout.mount` to re-attach it to the DOM.
22
- */
23
- unmount(): void;
24
- /**
25
- * Removes Embedded Checkout from the DOM and destroys it.
26
- * Once destroyed it not be re-mounted to the DOM.
27
- * Use this if you want to create a new Embedded Checkout instance.
28
- */
29
- destroy(): void;
30
- }
@@ -1,3 +0,0 @@
1
- export interface EphemeralKeyNonceOptions {
2
- issuingCard: string;
3
- }
@@ -1,19 +0,0 @@
1
- /**
2
- * Data to be sent with a `stripe.collectFinancialConnectionsAccounts` request.
3
- */
4
- export interface CollectFinancialConnectionsAccountsOptions {
5
- /**
6
- * The client secret of the [Financial Connections Session](https://stripe.com/docs/api/financial_connections/session).
7
- */
8
- clientSecret: string;
9
- }
10
-
11
- /**
12
- * Data to be sent with a `stripe.collectBankAccountToken` request.
13
- */
14
- export interface CollectBankAccountTokenOptions {
15
- /**
16
- * The client secret of the [Financial Connections Session](https://stripe.com/docs/api/financial_connections/session).
17
- */
18
- clientSecret: string;
19
- }
@@ -1,13 +0,0 @@
1
- export * from './checkout';
2
- export * from './custom-checkout';
3
- export * from './embedded-checkout';
4
- export * from './elements';
5
- export * from './elements-group';
6
- export * from './ephemeral-keys';
7
- export * from './financial-connections';
8
- export * from './orders';
9
- export * from './payment-intents';
10
- export * from './payment-request';
11
- export * from './setup-intents';
12
- export * from './token-and-sources';
13
- export * from './stripe';
@@ -1,9 +0,0 @@
1
- /**
2
- * Parameters that will be passed on to the Stripe API to confirm payment for an Order's PaymentIntent.
3
- */
4
- export interface ProcessOrderParams {
5
- /**
6
- * The url your customer will be directed to after they complete payment.
7
- */
8
- return_url: string;
9
- }