Stripe iOS SDK 24 に移行する
Swift と Objective-C のアプリを最新の iOS SDK メジャーバージョンに移行します。
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.
var configuration = PaymentSheet.Configuration() configuration.paymentMethodLayout = .horizontal
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.
STPCustomerContext
STPPaymentContext
STPPaymentOptionsViewController
STPAddCardViewController
STPShippingAddressViewController