Skip to content

Update dependency react-stripe-elements to v4

Warren Gifford requested to merge renovate/react-stripe-elements-4.x into master

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 code search for "react-stripe-elements"

Release Notes

stripe/react-stripe-elements

v4.0.1

Compare Source

Bug Fixes
  • Fixes a bug where calling stripe.handleCardPayment with only a client secret caused an error to be thrown.

v4.0.0

Compare Source

New Features
  • Renamed CardCVCElement to CardCvcElement 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 to CardCvcElement. CardCVCElement will be removed in version 5.0.0.
Breaking Changes
  • If you were already using handleCardSetup with react-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

📅 Schedule: "on the 1st through 7th day of the month" in timezone America/Los_Angeles.

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot. View repository job log here.

Merge request reports

Loading