Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

fix(deps): update dependency react-stripe-elements to v6 #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 27, 2020

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-stripe-elements 2.0.3 -> 6.1.2 age adoption passing confidence

Release Notes

stripe/react-stripe-elements

v6.1.2

Compare Source

Bug Fixes
  • Fix a bug where the elements prop is not injected by injectStripe when using async Stripe and mounting only a CardCvcElement or CardExpiry Element. (#​519 )

v6.1.1

Compare Source

Changes
  • Register package version with Stripe instance (#​512)

v6.1.0

Compare Source

New Features

Added the auBankAccount and fpxBank elements. These elements will not have
automatic Element detection/insertion. To use them you will need to use
elements.getElement and pass them directly to other Stripe.js methods (e.g.
stripe.confirmFpxPayment):

const FpxForm = injectStripe(({stripe, elements}) => {
  const handleSubmit = async (event) => {
    event.preventDefault();
    const {error} = await stripe.confirmFpxPayment('{{CLIENT_SECRET}}', {
      payment_method: {
        fpx: elements.getElement('fpxBank'),
      },
    });
  };

  return (
    <form onSubmit={handleSubmit}>
      <FpxBankElement accountHolderType="individual" />
      <button>Pay</button>
    </form>
  );
});

v6.0.1

Compare Source

Version bump that fixes some typos, no changes.

v5.1.0

Compare Source

New Features
  • Add support for accessing the underlying Element using refs via getElement.
Bug Fixes
  • Fix crash when trying to create element while unmounting. Thanks @​CarsonF!

v5.0.1

Compare Source

Bug Fixes
  • Fixes a bug where calling stripe.createPaymentMethod would error in IE.

v5.0.0

Compare Source

New Features
  • React 16.9 compatibility.
Breaking Changes
  • We replaced the internal use of deprecated componentWillReceiveProps. This
    internal movement of logic between lifecycle methods is likely safe for almost
    all apps and should not require any changes.

v4.0.2

Compare Source

Bug Fixes
  • Fixes a bug where calling stripe.createPaymentMethod would error in IE.

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,
  {}
);

v3.0.1

Compare Source

Bug Fixes
  • Fixes a bug where calling stripe.createPaymentMethod would error in IE.

v3.0.0

Compare Source

New Features
  • added a changelog

  • added support for stripe.handleCardPayment and stripe.createPaymentMethod.
    These methods allow you to easily integrate Stripe's new Payment Intents API.
    Like createToken and createSource, these new methods will automatically
    find and use a corresponding Element when they are called.

      stripe.createPaymentMethod(
        paymentMethodType: string,
        paymentMethodDetails: Object
      ): Promise<{error?: Object, paymentIntent?: Object}>
    
      stripe.handleCardPayment(
        clientSecret: string,
        data?: Object
      ): Promise<{error?: Object, paymentIntent?: Object}>

    For more information, please review the Stripe Docs:

Breaking Changes:
  • If you were already using handleCardPayment or createPaymentMethod with
    react-stripe-elements, you should upgrade your integration. These methods
    will now automatically find and use valid Elements.
Old Way
<CardElement
  ...
  onReady={this.handleReady}
/>

handleReady = (element) => {
  this.setState({cardElement: element}) ;
};

let { paymentIntent, error } = await this.props.stripe.handleCardPayment(
  intent.client_secret, this.state.cardElement, {}
);
New Way
<CardElement />;

let {paymentIntent, error} = await this.props.stripe.handleCardPayment(
  intent.client_secret,
  {}
);
  • Passing a beta flag to Stripe.js to use one of the PaymentIntents betas is not
    supported.
Old Way
const stripe = window.Stripe(
  publicKey,
  {betas: ['payment_intent_beta_3']},
);

<StripeProvider stripe={stripe}>
  <YourCheckoutComponent>
</StripeProvider>
New Way
<StripeProvider apiKey={publicKey}>
  <YourCheckoutComponent>
</StripeProvider>
  • PostalCodeElement has been removed. We suggest that you build your own
    postal code input.

Configuration

📅 Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 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 Mend Renovate. View repository job log here.

@renovate renovate bot changed the title fix(deps): update dependency react-stripe-elements to v6 Update dependency react-stripe-elements to v6 Apr 27, 2020
@renovate renovate bot changed the title Update dependency react-stripe-elements to v6 fix(deps): update dependency react-stripe-elements to v6 Jun 12, 2020
@renovate renovate bot changed the title fix(deps): update dependency react-stripe-elements to v6 Update dependency react-stripe-elements to v6 Jul 20, 2020
@renovate renovate bot changed the title Update dependency react-stripe-elements to v6 fix(deps): update dependency react-stripe-elements to v6 Aug 3, 2020
@renovate renovate bot force-pushed the renovate/react-stripe-elements-6.x branch 2 times, most recently from 53ab4d1 to 2a8153c Compare August 4, 2020 19:00
@renovate renovate bot force-pushed the renovate/react-stripe-elements-6.x branch from 2a8153c to eab7613 Compare September 25, 2022 22:44
@renovate renovate bot force-pushed the renovate/react-stripe-elements-6.x branch from eab7613 to 6a02213 Compare November 20, 2022 20:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

0 participants