Skip to content

Releases: stripe/react-stripe-js

v1.0.1

19 Feb 18:23
Compare
Choose a tag to compare

Initial stable release. No changes from the last beta.

v1.0.0-beta.7

14 Feb 00:04
Compare
Choose a tag to compare
v1.0.0-beta.7 Pre-release
Pre-release

New Features

  • Add FpxBankElement, and examples.
  • Add AuBankAccountElement.
    • The AU BECS Debit Payment Method is currently in beta, for more information please contact Stripe Support.
  • [types] Bump @stripe/stripe-js to 1.0.0-beta.9 to use the new Payment Methods.

Fixes

  • Fixed the ES Module version of this package to only use the default export of react to allow integrations that don't accept named exports. (#40)

v1.0.0-beta.6

12 Feb 01:03
Compare
Choose a tag to compare
v1.0.0-beta.6 Pre-release
Pre-release

Fixes

Invalid import of prop-types causing an error when using the ES Module version of this library (#33)
Various Stripe.js types from @stripe/stripe-js.

v1.0.0-beta.5

06 Feb 22:34
9dc5eae
Compare
Choose a tag to compare
v1.0.0-beta.5 Pre-release
Pre-release

Fixes

  • Fix types for TS projects not using esModuleInterop (#31)

v1.0.0-beta.4

06 Feb 22:32
1f7079e
Compare
Choose a tag to compare
v1.0.0-beta.4 Pre-release
Pre-release

Features

v1.0.0-beta.3

23 Jan 20:03
Compare
Choose a tag to compare
v1.0.0-beta.3 Pre-release
Pre-release

More examples and miscellaneous documentation updates.

Fixes

  • Removes a warning about useLayoutEffect when using React Stripe.js with server side rendering.

v1.0.0-beta.2

21 Jan 18:35
Compare
Choose a tag to compare
v1.0.0-beta.2 Pre-release
Pre-release

Reversion to v1.

Adds support for passing Promise<StripeObject | null> to the stripe prop of Elements. This removes the need for users to create and manage their own state when asynchronously loading Stripe.js and can be used with the loadStripe function from the Stripe.js module.

import {loadStripe} from '@stripe/stripe-js';

const stripePromise = loadStripe('pk_test_6pRNASCoBOKtIshFeQd4XMUh');

const App = () => (
  <Elements stripe={stripePromise}>
    {/* ... */}
  </Elements>
);