diff --git a/types/react-stripe-elements/index.d.ts b/types/react-stripe-elements/index.d.ts index b03b8b9f9b..ea8052c283 100644 --- a/types/react-stripe-elements/index.d.ts +++ b/types/react-stripe-elements/index.d.ts @@ -51,7 +51,7 @@ export namespace ReactStripeElements { handleCardSetup( clientSecret: string, data?: stripe.HandleCardSetupOptions - ): Promise; + ): Promise; } interface InjectOptions { diff --git a/types/react-stripe-elements/react-stripe-elements-tests.tsx b/types/react-stripe-elements/react-stripe-elements-tests.tsx index a6a46fd222..2fd3b52b88 100644 --- a/types/react-stripe-elements/react-stripe-elements-tests.tsx +++ b/types/react-stripe-elements/react-stripe-elements-tests.tsx @@ -300,7 +300,7 @@ class HandleCardSetup extends React.Component { testHandleCardSetup = () => { this.props .stripe!.handleCardSetup('clientSecret') - .then((response) => response.paymentIntent); + .then((response) => response.setupIntent); } testHandleCardSetupWithData = () => { @@ -312,7 +312,7 @@ class HandleCardSetup extends React.Component { } }, }) - .then((response) => response.paymentIntent); + .then((response) => response.setupIntent); } testHandleCardSetupWithError = () => {