Releases: stripe/stripe-react-native
Releases · stripe/stripe-react-native
v0.9.0
Breaking changes
- (#913) breaking: Changed props for the
<AddToWalletButton />
component. Instead of passingcardHolderName
,cardLastFour
,cardDescription
, andcardBrand
directly as props, you will instead pass acardDetails
prop, which is an object containing the following fields:primaryAccountIdentifier
: Thewallet.primary_account_identifier
value from the issued card.name
: The card holder name (previouslycardHolderName
).description
: A user-facing description of the card (previouslycardDescription
).lastFour
: Last 4 digits of the card, optional (previouslycardLastFour
).brand
: The card brand, optional (previouslycardBrand
).
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
v0.8.0
v0.8.0
Breaking changes
- #890 BREAKING CHANGE: Changed parameters for:
createPaymentMethod
,confirmPayment
,confirmSetupIntent
,collectBankAccountForPayment
, andcollectBankAccountForSetup
. Please read this migration guide for details.- Renamed
type
field topaymentMethodType
onPaymentMethod.Result
,PaymentIntent.Result
, andSetupIntent.Result
(result ofcreatePaymentMethod
,retrieveSetupIntent
,confirmSetupIntent
,confirmPayment
,collectBankAccountForPayment
,collectBankAccountForSetup
,verifyMicrodepositsForPayment
, andverifyMicrodepositsForSetup
).
- Renamed
- #849 BREAKING CHANGE: Renamed
placeholder
prop on<CardField />
and<CardForm />
toplaceholders
.
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/
v0.7.0
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 ofsetReturnUrlSchemeOnAndroid
.setReturnUrlSchemeOnAndroid
functions exactly the same, this is just a rename. - Removed
handleCardAction
in favor ofhandleNextAction
.handleNextAction
functions exactly the same, this is just a rename. createPaymentMethod
'sbillingDetails
andshippingDetails
parameters no longer accept theaddressPostalCode
,addressCity
,addressCountry
,addressLine1
,addressLine2
, oraddressState
keys. Instead, they accept anaddress
object containing:city
,country
,line1
,line2
,postalCode
,state
.confirmPayment
'sbillingDetails
andshippingDetails
parameters no longer accept theaddressPostalCode
,addressCity
,addressCountry
,addressLine1
,addressLine2
, oraddressState
keys. Instead, they accept anaddress
object containing:city
,country
,line1
,line2
,postalCode
,state
.BillingDetails
no longer includesaddressPostalCode
,addressCity
,addressCountry
,addressLine1
,addressLine2
, oraddressState
keys. Instead, it includes anaddress
object containing:city
,country
,line1
,line2
,postalCode
,state
keys.ShippingDetails
no longer includesaddressPostalCode
,addressCity
,addressCountry
,addressLine1
,addressLine2
, oraddressState
keys. Instead, it includes anaddress
object containing:city
,country
,line1
,line2
,postalCode
,state
keys.PaymentIntents
was renamedPaymentIntent
. (If you were usingPaymentIntents.Status
, now you must change it toPaymentIntent.Status
)SetupIntents
was renamedSetupIntent
. (If you were usingSetupIntents.Status
, now you must change it toSetupIntent.Status
)- (Typescript)
Card.Token
is nowToken.Result
- (Typescript)
Card.Brand
is nowToken.CardBrand
- (Typescript)
Card.TokenType
is nowToken.Type
- (Typescript)
Card.BankAccount
is nowToken.BankAccount
- (Typescript)
Card.Params
is nowToken.Params
- (Typescript)
CardFormView.Names
is nowCardFormView.FieldName
- (Typescript)
CardFieldInput.Names
is nowCardFieldInput.FieldName
- (Typescript)
ApplePayButtonComponent.Styles
is nowApplePayButtonComponent.Style
- (Typescript)
ApplePayButtonComponent.Types
is nowApplePayButtonComponent.Type
- (Typescript)
PaymentMethod
is nowPaymentMethod.Result
- (Typescript)
PaymentIntent
is nowPaymentIntent.Result
- (Typescript)
SetupIntent
is nowSetupIntent.Result
- (Typescript) Exports that were under the
Card
namespace are now underToken
- (Typescript)
CreateTokenParams
is nowToken.CreateParams
- (Typescript)
BankAcccountHolderType
is nowToken.BankAcccountHolderType
- (Typescript)
ThreeDSecureConfigurationParams
is nowThreeDSecure.ConfigurationParams
- (Typescript)
PaymentMethodCreateParams.Params
is nowPaymentMethod.CreateParams
- (Typescript)
PaymentMethodCreateParams.Options
is nowPaymentMethod.ConfirmOptions
- (Typescript)
CreateTokenParams
is nowToken.CreateParams
- (Typescript)
ConfirmSetupIntent.Params
is nowSetupIntent.ConfirmParams
- (Typescript)
ConfirmSetupIntent.Options
is nowSetupIntent.ConfirmOptions
- (Typescript)
confirmPayment
now accepts thePaymentIntent.ConfirmParams
(same type, just renamed). - (Typescript)
BillingDetails
type is now exported directly, instead of under thePaymentMethodCreateParams
object. - (Typescript)
presentGooglePay
now acceptsGooglePay.PresentParams
- (Typescript)
GooglePay.PresentGooglePayParams
is nowGooglePay.PresentParams
- (Typescript)
GooglePay.PresentGooglePayType
is nowGooglePay.PresentType
- (Typescript)
GooglePay.IsGooglePaySupportedParams
is nowGooglePay.IsSupportedParams
- (Typescript) Removed
GooglePay.SetupIntentParams
- Removed
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.+
v0.6.0
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 modifyingIPHONEOS_DEPLOYMENT_TARGET
in yourproject.pbxproj
directly. You will also need to update your Podfile to target:ios, '12.0'
.
- To upgrade your iOS deployment target to 12.0, you can either do so in Xcode under your
New features
- #861 Feat: Add support for ACHv2 payments on iOS only.
Changes
- #861 Chore: Upgrade
stripe-ios
to 22.0.0.
v0.5.0
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
, andborderWidth
forAuBECSDebitForm
on iOS
Changes
- #854 Chore: Upgrade
stripe-ios
to 21.13.0. Upgradestripe-android
to 19.3.0.
v0.4.0
v0.3.0
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)
v0.2.4
New features
- #591 feat: add option to create a token directly from a bank account.
- #774 feat: Add
currencyCode
support toinitPaymentSheet
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 aNullPointerException
. - #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. Upgradedstripe-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
v0.2.3
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)