Stripe Android SDK 21 に移行する
Kotlin アプリを最新の Android SDK メジャーバージョンに移行します。
CollectBankAccountLauncher
CollectBankAccountLauncher の依存関係 com.
の名前は 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