Update dependency react-stripe-elements to v4
Created by: renovate[bot]
This PR contains the following updates:
Package | Type | Update | New value | References | Sourcegraph |
---|---|---|---|---|---|
react-stripe-elements | dependencies | major | ^4.0.1 | source |
Release Notes
stripe/react-stripe-elements
v4.0.1
Bug Fixes
- Fixes a bug where calling
stripe.handleCardPayment
with only a client secret caused an error to be thrown.
v4.0.0
New Features
-
Renamed
CardCVCElement
toCardCvcElement
which better mirrors the Elements API. We will keep the old component name around as an alias until 5.0.0. -
Added support for
stripe.handleCardSetup
stripe.handleCardSetup( clientSecret: string, data?: Object ): Promise<{error?: Object, setupIntent?: Object}>
For more information, please review the Stripe Docs:
Deprecations
-
CardCVCElement
has been renamed toCardCvcElement
.CardCVCElement
will be removed in version 5.0.0.
Breaking Changes
- If you were already using
handleCardSetup
withreact-stripe-elements
, you should upgrade your integration. This method will now automatically find and use valid Elements.
Old Way
<CardElement
...
onReady={this.handleReady}
/>
handleReady = (element) => {
this.setState({cardElement: element}) ;
};
const {setupIntent, error} = await this.props.stripe.handleCardSetup(
intent.client_secret, this.state.cardElement, {}
);
New Way
<CardElement />;
const {setupIntent, error} = await this.props.stripe.handleCardSetup(
intent.client_secret,
{}
);
Renovate configuration
rebase!
".
-
If you want to rebase/retry this PR, check this box
This PR has been generated by Renovate Bot. View repository job log here.