0.15.0
charliecruzan-stripe
released this
14 Jul 17:06
·
299 commits
to master
since this release
Breaking changes
- #1020 Changed some of fields for the
params
object that is supplied toinitPaymentSheet(params)
:- Changed the
applePay
field. Previously this field accepted a boolean, now it accepts an object of typeApplePayParams
, which includes themerchantCountryCode
field, and a newpaymentSummaryItems
field (see "New features" below). - Changed the
googlePay
field. Previously this field accepted a boolean, now it accepts an object of typeGooglePayParams
, which includes themerchantCountryCode
,currencyCode
, andtestEnv
fields. - Since the
merchantCountryCode
field now lives under theapplePay
andgooglePay
objects, it has been removed from the baseparams
object. - Similarly, since the
currencyCode
andtestEnv
fields now live under thegooglePay
object, they have been removed from the baseparams
object .
- Changed the
- #1020 In
ApplePay.CartSummaryItem
:- Renamed
type
toisPending
- (if you hadtype: 'pending'
, replace it withisPending: true
. iftype: 'final'
, either remove it or setisPending: false
).- The same change was made to
ApplePay.ShippingMethod
: renamedtype
toisPending
.
- The same change was made to
- Added a new
paymentType
field. This field is required, and in all pre-existing cases where you created aCartSummaryItem
, should be set topaymentType: 'Immediate'
(support for typesDeferred
andRecurring
wasn't available until this release).
- Renamed
New features
- Added support for iOS 15
paymentSummaryItems
:PKDeferredPaymentSummaryItem
andPKRecurringPaymentSummaryItem
. - You can now specify Apple Pay line items to be displayed when paying with Apple Pay in PaymentSheet by providing
applePay.paymentSummaryItems
to theinitPaymentSheet
method. #1020 - Added support for Affirm (previously, Affirm was only available in the Payment Sheet). 1036
Fixes
- Fixed behavior of
CardField
andCardForm
on Android to match that on iOS; postal code input no longer accepts characters that are never present in postal codes (anything besides 0-9, a-z, A-Z, hyphens, and whitespace). #1027. - Fixed an issue on older version of React Native where calling
collectBankAccountForSetup
orcollectBankAccountForPayment
and getting aCanceled
result could cause a crash. #1037 - Fixed an issue where some Android builds would fail on the
lintVitalRelease
step. #1038