Releases: stripe/stripe-ios
Releases · stripe/stripe-ios
Version 11.5.0
- Adds a new helper method to
STPSourceParams
for creating reusable Alipay sources. #811 - Silences spurious availability warnings when using Xcode9 #823
- Auto capitalizes currency code when using
paymentRequestWithMerchantIdentifier
to improve compatibility with iOS 11PKPaymentAuthorizationViewController
#829 - Fixes a bug in
STPRedirectContext
which causedSFSafariViewController
-based redirects to incorrectly dismiss when switching apps. #833 - Fixes a bug that incorrectly offered users the option to "Use Billing Address" on the shipping address screen when there was no existing billing address to fill in. #834
Version 11.4.0
- Restores
[STPCard brandFromString:]
method which was marked as deprecated in a recent version #801 - Adds
[STPBankAccount metadata]
and[STPCard metadata]
read-only accessors and improves annotation for[STPSource metadata]
#808 - Un-deprecates
STPBackendAPIAdapter
and all associated methods. #813 - The
STPBackendAPIAdapter
protocol now includes two optional methods,detachSourceFromCustomer
andupdateCustomerWithShipping
. If you've implemented a class conforming toSTPBackendAPIAdapter
, you may add implementations of these methods to support deleting cards from a customer and saving shipping info to a customer. #813 - Adds the ability to set custom footers on view controllers managed by the SDK. #792
STPPaymentMethodsViewController
will now display saved card sources in addition to saved card tokens. #810- Fixes a bug where certain requests would return a generic failed to parse response error instead of the actual API error. #809
Version 11.3.0
- Adds support for creating
STPSourceParams
for P24 source #779 - Adds support for native app-to-app Alipay redirects #783
- Fixes crash when
paymentContext.hostViewController
is set to aUINavigationController
#786 - Improves support and compatibility with iOS 11
- Changes and fixes methods on
STPCard
,STPCardParams
,STPBankAccount
, andSTPBankAccountParams
to bring card objects more in line with the rest of the API. See MIGRATING for further details. - Adds nullability annotations to
STPPaymentMethod
protocol #753 - Improves the
[STPAPIResponseDecodable allResponseFields]
by removing all instances of[NSNull null]
including ones that are nested. See MIGRATING.md. #747
Version 11.2.0
- Adds an option to allow users to delete payment methods from the
STPPaymentMethodsViewController
. Enabled by default but can disabled using thecanDeletePaymentMethods
property ofSTPPaymentConfiguration
. - Adds a postal code field to
STPPaymentCardTextField
, configurable withpostalCodeEntryEnabled
andpostalCodePlaceholder
. Disabled by default. - Adds a new helper method to
STPSourceParams
for creating single-use Alipay sources. - Adds a new example app, "UI Examples", which you can run without any setup to check out our UI components.
STPCustomer
'sshippingAddress
property is now correctly annotated as nullable.- Removed
STPCheckoutUnknownError
,STPCheckoutTooManyAttemptsError
, andSTPCustomerContextMissingKeyProviderError
. These errors will no longer occur.
Version 11.1.0
- Added
stripeAccount
property toSTPAPIClient
, set this to perform API requests on behalf of a connected account - Fixed the
routingNumber
property ofSTPBankAccount
so that it is populated when the information is available - Added iOS Objective-C Style Guide
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.