stripe-react-native

React Native library for Stripe.

MIT License

Downloads
430.6K
Stars
1.2K
Committers
57

Bot releases are hidden (Show)

stripe-react-native - 0.10.0

Published by acomley-stripe over 2 years ago

Breaking changes

New features

  • Card scanning is available in payment sheet on Android. #944
    • To enable this, you will need to add implementation 'com.stripe:stripecardscan:20.3.+' to your dependencies {} block in android/app/build.gradle.
  • us_bank_account payment method is now available in the payment sheet on Android. #944

Fixes

Please see the changelog for additional details.

stripe-react-native - 0.6.1

Published by charliecruzan-stripe over 2 years ago

Breaking changes

New features

Fixes

  • fix: correctly overwrite package.json import via babel. #924
  • fix: upgrade expo config plugins. #936

Please see the changelog for additional details: https://github.com/stripe/stripe-react-native/blob/master/CHANGELOG.md

stripe-react-native - v0.9.0

Published by acomley-stripe over 2 years ago

Breaking changes

  • (#913) breaking: Changed props for the <AddToWalletButton /> component. Instead of passing cardHolderName, cardLastFour, cardDescription, and cardBrand directly as props, you will instead pass a cardDetails prop, which is an object containing the following fields:
    • primaryAccountIdentifier: The wallet.primary_account_identifier value from the issued card.
    • name: The card holder name (previously cardHolderName).
    • description: A user-facing description of the card (previously cardDescription).
    • lastFour: Last 4 digits of the card, optional (previously cardLastFour).
    • brand: The card brand, optional (previously cardBrand).

New features

  • feat: add PayPal support for payment intents (#929)
  • feat: expose 'cvc' when dangerouslyGetCardDetails is set to true (#928)
  • feat: add token & paymentMethodId handling to confirmPayment for Cards (#931)
  • feat: add ACHv2 to payment sheet on iOS (#925)

Fixes

  • fix: wrap instances of framentManager.commit (or use commitAllowingStateLoss) (#933)
  • fix: upgrade expo config plugins (#936)
  • fix: manually forward activity results to paymentLauncherFragment (#932)
  • fix: correctly overwrite package.json import via babel (#924)
  • fix: Providing zip code straight from CardField component on Android (#912)
  • fix: add fingerprint to Card result on android (#914)

Changed

Please see the changelog for additional details: https://github.com/stripe/stripe-react-native/blob/master/CHANGELOG.md

stripe-react-native - v0.8.0

Published by acomley-stripe over 2 years ago

v0.8.0

Breaking changes

  • #890 BREAKING CHANGE: Changed parameters for: createPaymentMethod, confirmPayment, confirmSetupIntent, collectBankAccountForPayment, and collectBankAccountForSetup. Please read this migration guide for details.
    • Renamed type field to paymentMethodType on PaymentMethod.Result, PaymentIntent.Result, and SetupIntent.Result (result of createPaymentMethod, retrieveSetupIntent, confirmSetupIntent, confirmPayment, collectBankAccountForPayment, collectBankAccountForSetup, verifyMicrodepositsForPayment, and verifyMicrodepositsForSetup).
  • #849 BREAKING CHANGE: Renamed placeholder prop on <CardField /> and <CardForm /> to placeholders.

New features

  • #889 Feat: add support for push provisioning (adding cards to native wallets)
  • #849 Feat: Added customized styling options to <CardForm /> on Android.

Fixes

  • #902 fix: create custom babel plugin for package.json imports in src/
stripe-react-native - v0.7.0

Published by charliecruzan-stripe over 2 years ago

0.7.0

Breaking changes

  • #837 BREAKING CHANGE: Mostly fixes and changes to types, but some method's now accept slightly different parameters:
    • Removed setUrlSchemeOnAndroid in favor of setReturnUrlSchemeOnAndroid. setReturnUrlSchemeOnAndroid functions exactly the same, this is just a rename.
    • Removed handleCardAction in favor of handleNextAction. handleNextAction functions exactly the same, this is just a rename.
    • createPaymentMethod's billingDetails and shippingDetails parameters no longer accept the addressPostalCode, addressCity, addressCountry, addressLine1, addressLine2, or addressState keys. Instead, they accept an address object containing: city, country, line1, line2, postalCode, state.
    • confirmPayment's billingDetails and shippingDetails parameters no longer accept the addressPostalCode, addressCity, addressCountry, addressLine1, addressLine2, or addressState keys. Instead, they accept an address object containing: city, country, line1, line2, postalCode, state.
    • BillingDetails no longer includes addressPostalCode, addressCity, addressCountry, addressLine1, addressLine2, or addressState keys. Instead, it includes an address object containing: city, country, line1, line2, postalCode, state keys.
    • ShippingDetails no longer includes addressPostalCode, addressCity, addressCountry, addressLine1, addressLine2, or addressState keys. Instead, it includes an address object containing: city, country, line1, line2, postalCode, state keys.
    • PaymentIntents was renamed PaymentIntent. (If you were using PaymentIntents.Status, now you must change it to PaymentIntent.Status)
    • SetupIntents was renamed SetupIntent. (If you were using SetupIntents.Status, now you must change it to SetupIntent.Status)
    • (Typescript) Card.Token is now Token.Result
    • (Typescript) Card.Brand is now Token.CardBrand
    • (Typescript) Card.TokenType is now Token.Type
    • (Typescript) Card.BankAccount is now Token.BankAccount
    • (Typescript) Card.Params is now Token.Params
    • (Typescript) CardFormView.Names is now CardFormView.FieldName
    • (Typescript) CardFieldInput.Names is now CardFieldInput.FieldName
    • (Typescript) ApplePayButtonComponent.Styles is now ApplePayButtonComponent.Style
    • (Typescript) ApplePayButtonComponent.Types is now ApplePayButtonComponent.Type
    • (Typescript) PaymentMethod is now PaymentMethod.Result
    • (Typescript) PaymentIntent is now PaymentIntent.Result
    • (Typescript) SetupIntent is now SetupIntent.Result
    • (Typescript) Exports that were under the Card namespace are now under Token
    • (Typescript) CreateTokenParams is now Token.CreateParams
    • (Typescript) BankAcccountHolderType is now Token.BankAcccountHolderType
    • (Typescript) ThreeDSecureConfigurationParams is now ThreeDSecure.ConfigurationParams
    • (Typescript) PaymentMethodCreateParams.Params is now PaymentMethod.CreateParams
    • (Typescript) PaymentMethodCreateParams.Options is now PaymentMethod.ConfirmOptions
    • (Typescript) CreateTokenParams is now Token.CreateParams
    • (Typescript) ConfirmSetupIntent.Params is now SetupIntent.ConfirmParams
    • (Typescript) ConfirmSetupIntent.Options is now SetupIntent.ConfirmOptions
    • (Typescript) confirmPayment now accepts the PaymentIntent.ConfirmParams (same type, just renamed).
    • (Typescript) BillingDetails type is now exported directly, instead of under the PaymentMethodCreateParams object.
    • (Typescript) presentGooglePay now accepts GooglePay.PresentParams
    • (Typescript) GooglePay.PresentGooglePayParams is now GooglePay.PresentParams
    • (Typescript) GooglePay.PresentGooglePayType is now GooglePay.PresentType
    • (Typescript) GooglePay.IsGooglePaySupportedParams is now GooglePay.IsSupportedParams
    • (Typescript) Removed GooglePay.SetupIntentParams

New features

  • #879 Feat: Add support for ACHv2 payments on Android (already existed on iOS).

Fixes

  • #894 Fix: <CardField /> onBlur callback will now be called appropriately on Android
  • #846 Fix: Avoid crashes when currentActivity is null

Changed

  • #879 Chore: Upgraded stripe-android from v19.3.+ to v20.1.+
stripe-react-native - v0.6.0

Published by charliecruzan-stripe over 2 years ago

Breaking

  • #861 BREAKING: This library now supports iOS 12 and up, due to stripe-ios increasing the deployment target. If you would like to build for iOS 11, please continue to use @stripe/[email protected].
    • To upgrade your iOS deployment target to 12.0, you can either do so in Xcode under your Build Settings, or by modifying IPHONEOS_DEPLOYMENT_TARGET in your project.pbxproj directly. You will also need to update your Podfile to target :ios, '12.0'.

New features

  • #861 Feat: Add support for ACHv2 payments on iOS only.

Changes

  • #861 Chore: Upgrade stripe-ios to 22.0.0.
stripe-react-native - v0.5.0

Published by charliecruzan-stripe over 2 years ago

New features

  • #863 Feat: add card ID and bankAccount ID to token response
  • #862 Feat: Add support for setting a card's currency when creating a Token
  • #845 Feat: Added support for placeholderColor, textErrorColor , borderColor, borderRadius, and borderWidth for AuBECSDebitForm on iOS

Changes

  • #854 Chore: Upgrade stripe-ios to 21.13.0. Upgrade stripe-android to 19.3.0.
stripe-react-native - v0.4.0

Published by charliecruzan-stripe over 2 years ago

New features

  • feat: add Klarna to confirmPayment payment methods (#821)

Fixes

  • [Android] fix: card field focus jumps back to the card number field (#630)
  • Fix: google pay error code when cancelled should be 'Canceled' (#824)
stripe-react-native - v0.3.0

Published by michelleb-stripe over 2 years ago

New features

  • Feat: add isGooglePaySupported method (#811)

Fixes

  • chore: Upgrade native Stripe dependencies (#817)
  • fix: pass null instead of empty string for routing number (#809)
  • fix: cleanup paymentSheetFlowController before initializing new paymentsheet (#814)
  • fix: properly configure cursorColor for CardField on Android (#806)
  • fix: make android e2e tests faster and more reliable (#804)

Changed

  • [dependabot] chore(deps): bump follow-redirects from 1.14.1 to 1.14.8 (#810)
  • [skip actions][dependabot] build(deps): bump node-fetch from 2.6.5 to 2.6.7 in /example (#800)
  • [skip actions][dependabot] build(deps): bump simple-get from 3.1.0 to 3.1.1 (#797)
  • [skip actions][dependabot] build(deps): bump trim-off-newlines from 1.0.1 to 1.0.3 (#796)
stripe-react-native - v0.2.4

Published by michelleb-stripe over 2 years ago

New features

  • #591 feat: add option to create a token directly from a bank account.
  • #774 feat: Add currencyCode support to initPaymentSheet for Google Pay & Setup Intents
  • #629 feat: Add validation state to CardField

Fixes

  • #788 fix: assign paymentSheetFragment directly, instead of through intents which would sometimes result in a NullPointerException.
  • #675 Bug fixes for server example
  • #658 fix: TS issue with 0.2.3 StripeProvider cannot be used as a JSX component
  • #635 fix: billing address postal code

Changed

  • #801 Upgraded stripe-ios to v21.11.1. Upgraded stripe-android to v19.1.+. Added Android 12 support to example.
  • #726 Update build.gradle to be more flexible in version of stripe-android
  • #702 docs: Update GooglePay.md
  • #690 docs: Correct default for existingPaymentMethodRequired
  • #660 docs: Fixed readme js object typo
  • #657 chore: updated the dependencies for the example app
stripe-react-native - v0.2.3

Published by michelleb-stripe about 3 years ago

New features

feat: Add button color, return URL, allowsDelayedPaymentMethods, and billing details to PaymentSheet (#601)

Fixes

fix: check support for specific TextInputState methods (#568)

Changed

chore: Add jest mock file (#565)
chore: Update Podfile.lock stripe-react-native version (#587)
chore: Update tips migration guide (#631)

stripe-react-native - v0.2.2

Published by davidme-stripe about 3 years ago

Fixes

  • fix: use the LocalBroadcastManager (#588)
stripe-react-native - v0.2.1

Published by michelleb-stripe about 3 years ago

New features

  • #525 feat: add openApplePaySetup method (#400)
  • #514 feat: simpify presentPaymentSheet
  • #506 feat: enhance payment sheet dx (#505)

Fixes

  • #546 fix: resolve initGooglePay with error if it's not available (#533)
  • #521 fix: support cardFormView for createToken method
  • #513 fix: set null as initial value for isApplePaySupported (#496)

Changed

  • #548 chore: split apple pay address by new line (#531)
stripe-react-native - v0.2.0

Published by davidme-stripe about 3 years ago

New features

  • #415 feat: add multiline card form element (#83)
  • #441 feat(android): add standalone Google Pay (#9)
  • #422 feat: add WeChat Pay (#52)

Fixes

  • #451 fix: send postal code with card details (#420)
  • #436 fix: cardfield crashes app (#391)
  • #419 fix(android): error handling for createToken (#405)

Changed

  • #453 chore: add JCB support for Apple Pay (#43)
stripe-react-native - v0.1.5

Published by michelleb-stripe over 3 years ago

0.1.5 - 2021-07-14

  • #394 [BREAKING CHANGE] fix: createToken response discrepancy (#344)
  • #354 [BREAKING CHANGE] chore: rename top-level export confirmPaymentMethod to confirmPayment (#318)
  • #416 fix(android): googlePay setting on initPaymentSheet
  • #392 fix: created timestamp discrepancy (#368)
  • #395 fix: resolve initPaymentSheet only when ready (#315)
  • #390 fix: add missing setupFutureUsage param (#367)
  • #389 fix: set url scheme when using paymentMethodId (#378)
  • #337 feat: expose CardField methods (focus, blur, clear)
  • #366 fix: open payment sheet from modal (#315; #290)
stripe-react-native - v0.1.4

Published by davidme-stripe over 3 years ago

New features

  • #309 feat: add retrieveSetupIntent method (#294)
  • #306 feat: add dangerouslyGetFullCardDetails prop to CardField component (#280)
  • #298 feat: support SetupIntents in payment sheet (#293)
  • #295 feat(ios): return the paymentMethod object when presentApplePay resolves (#271)
  • #273 feat: enrich the response error objects with additional information (#206)
  • #266 feat(ios): add borderRadius prop to the ApplePayButton component (#258)
  • #260 feat: add the StripeContainer component that allows for dismissal of the keyboard when wrapped around the CardField component (#222)

Fixes

  • #276 fix(android): payment sheet not opening when stripeAccountId set (#267)
  • #255 fix(android): crash on onActivityResult when Stripe isn't initialized

Changed

  • #296 chore: support testID prop in all UI components (#268)
stripe-react-native - v0.1.2

Published by thorsten-stripe over 3 years ago

New features

  • #247 feat: add fontFamily prop to CardField component (#103)
  • #228 feat: add ability to show error in Apple Pay sheet within onShippingContactSelected handler (#148)
  • #221 feat: add legacy createToken method for older integrations (#187)
  • #226 feat: add autofocus prop to CardField component (#199)

Fixes

  • #234 fix: add missing 3D Secure button props (#201)
  • #245 fix: clear card params when CardField input is invalidated (#237)

Changed

stripe-react-native - v0.1.1

Published by thorsten-stripe over 3 years ago

New features

  • #217 feat: E2E testing CI configuration

Fixes

  • #213 fix: expose config-plugin and add blank swift file
  • #216 fix: unify cancel handling (#205)
  • #215 fix: createPaymentMethod promise reject (#209)
  • #208 fix: add .npmignore disallow list (#204)
  • #207 fix: handle different pjson output (#200)
  • #197 fix: update library name in expo plugin

Changed