Migrer vers Stripe iOS SDK 24
Migrez vos applications Swift et Objective-C vers notre dernière version majeure du SDK iOS.
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