Migrate to Stripe Android SDK 21
Migrate your Kotlin apps to our latest Android SDK major version.
CollectBankAccountLauncher
CollectBankAccountLauncher’s dependency com.
has been renamed com.
.
PaymentSheet
PaymentSheet displays payment methods in either a vertical or horizontal layout. Prior to this major version, PaymentSheet defaulted to a horizontal layout. Now, Stripe optimizes the layout automatically. To set a specific layout instead, set the PaymentSheet.
property to either .
or .
.
This example code sets the layout back to horizontal, the previous default.
PaymentSheet.Configuration.Builder("Example, Inc.") .paymentMethodLayout(PaymentSheet.PaymentMethodLayout.Horizontal) .build() )
Basic integration
We no longer support our legacy Basic Integration for collecting credit card and wallet payments.
If your app relies on any of the following APIs, it uses the Basic Integration. Migrate to the Mobile Payment Element, by following this migration guide.
CustomerSession
PaymentSession
PaymentMethodsActivity
AddPaymentMethodActivity
PaymentFlowActivity