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.+