Releases: stripe/stripe-ios
Releases · stripe/stripe-ios
Version 11.0.0
- We've greatly simplified the integration for
STPPaymentContext
. See MIGRATING.md. - As part of this new integration, we've added a new class,
STPCustomerContext
, which will automatically prefetch your customer and cache it for a brief interval. We recommend initializing yourSTPCustomerContext
before your user enters your checkout flow so their payment methods are loaded in advance. If in addition to usingSTPPaymentContext
, you create a separateSTPPaymentMethodsViewController
to let your customer manage their payment methods outside of your checkout flow, you can use the same instance ofSTPCustomerContext
for both. - We've added a
shippingAddress
property toSTPUserInformation
, which you can use to pre-fill your user's shipping information. STPPaymentContext
will now save your user's shipping information to their Stripe customer object. Shipping information will automatically be pre-filled from the customer object for subsequent checkouts.- Fixes nullability annotation for
[STPFile stringFromPurpose:]
. See MIGRATING.md. - Adds description implementations to all public models, for easier logging and debugging.
- The card autofill via SMS feature of
STPPaymentContext
has been removed. See MIGRATING.md.
Version 10.2.0
- We've added a
paymentCountry
property toSTPPaymentContext
. This affects the countryCode of Apple Pay payments, and defaults to "US". You should set this to the country your Stripe account is in. paymentRequestWithMerchantIdentifier:
has been deprecated. See MIGRATING.md- If the card.io framework is present in your app,
STPPaymentContext
andSTPAddCardViewController
will show a "scan card" button. STPAddCardViewController
will now attempt to auto-fill the users city and state from their entered Zip code (United States only)- Polling for source object updates is deprecated. Check https://stripe.com/docs for the latest best practices on how to integrate with the sources API using webhooks.
- Fixes a crash in
STPCustomerDeserializer
when both data and error are nil. paymentMethodsViewController:didSelectPaymentMethod:
is now optional.- Updates the example apps to use Alamofire.
Version 10.1.0
- Adds STPRedirectContext, a helper class for handling redirect sources.
- STPAPIClient now supports tokenizing a PII number and uploading images.
- Updates STPPaymentCardTextField's icons to match Elements on the web. When the card number is invalid, the field will now display an error icon.
- The alignment of the new brand icons has changed to match the new CVC and error icons. If you use these icons via
STPImageLibrary
, you may need to adjust your layout. - STPPaymentCardTextField's isValid property is now KVO-observable.
- When creating STPSourceParams for a SEPA debit source, address fields are now optional.
STPPaymentMethodsViewControllerDelegate
now has a separatepaymentMethodsViewControllerDidCancel:
callback, differentiating from successful method selections. You should make sure to also dismiss the view controller in that callback- Because collecting some basic data on tokenization helps us detect fraud, we've removed the ability to disable analytics collection using
[Stripe disableAnalytics]
.
Version 10.0.1
- Fixes a bug where card sources didn't include the card owner's name.
- Fixes an issue where
STPPaymentMethodsViewController
didn't reload after adding a new payment method.
Version 10.0.0
- Adds support for creating, retrieving, and polling Sources. You can enable any payment methods available to you in the Dashboard.
- Updates the Objective-C example app to include example integrations using several different payment methods.
- Updates
STPCustomer
to includeSTPSource
objects in itssources
array if a customer has attached sources. - Removes methods deprecated in Version 6.0.
- Fixes property declarations missing strong/nullable identifiers.
Version 9.4.0
v9.4.0
Version 9.3.0
v9.3.0
Version 9.2.0
v9.2.0 Shipping collection
Version 9.1.0
v9.1.0
Version 9.0.0
v9.0.0