Skip to content

Releases: stripe/stripe-ios

Version 11.5.0

09 Nov 23:03
v11.5.0
Compare
Choose a tag to compare
  • 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 11 PKPaymentAuthorizationViewController #829
  • Fixes a bug in STPRedirectContext which caused SFSafariViewController-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

20 Oct 23:03
v11.4.0
Compare
Choose a tag to compare
  • 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 and updateCustomerWithShipping. If you've implemented a class conforming to STPBackendAPIAdapter, 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

14 Sep 17:01
v11.3.0
Compare
Choose a tag to compare
  • 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 a UINavigationController #786
  • Improves support and compatibility with iOS 11
    • Explicitly disable code coverage generation for compatibility with Carthage in Xcode 9 #795
    • Restore use of native "Back" buttons #789
  • Changes and fixes methods on STPCard, STPCardParams, STPBankAccount, and STPBankAccountParams to bring card objects more in line with the rest of the API. See MIGRATING for further details.
    • STPCard and STPCardParams #760
    • STPBankAccount and STPBankAccountParams #761
  • 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

27 Jul 22:49
v11.2.0
Compare
Choose a tag to compare
  • Adds an option to allow users to delete payment methods from the STPPaymentMethodsViewController. Enabled by default but can disabled using the canDeletePaymentMethods property of STPPaymentConfiguration.
  • Adds a postal code field to STPPaymentCardTextField, configurable with postalCodeEntryEnabled and postalCodePlaceholder. 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's shippingAddress property is now correctly annotated as nullable.
  • Removed STPCheckoutUnknownError, STPCheckoutTooManyAttemptsError, and STPCustomerContextMissingKeyProviderError. These errors will no longer occur.

Version 11.1.0

13 Jul 01:04
v11.1.0
Compare
Choose a tag to compare
  • Added stripeAccount property to STPAPIClient, set this to perform API requests on behalf of a connected account
  • Fixed the routingNumber property of STPBankAccount so that it is populated when the information is available
  • Added iOS Objective-C Style Guide

Version 11.0.0

29 Jun 22:47
v11.0.0
Compare
Choose a tag to compare
  • 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 your STPCustomerContext before your user enters your checkout flow so their payment methods are loaded in advance. If in addition to using STPPaymentContext, you create a separate STPPaymentMethodsViewController to let your customer manage their payment methods outside of your checkout flow, you can use the same instance of STPCustomerContext for both.
  • We've added a shippingAddress property to STPUserInformation, 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

19 Jun 21:32
v10.2.0
Compare
Choose a tag to compare
  • We've added a paymentCountry property to STPPaymentContext. 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 and STPAddCardViewController 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

05 May 22:35
v10.1.0
Compare
Choose a tag to compare
  • 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 separate paymentMethodsViewControllerDidCancel: 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

16 Mar 18:08
v10.0.1
Compare
Choose a tag to compare
  • 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

08 Mar 21:41
v10.0.0
Compare
Choose a tag to compare
  • 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 include STPSource objects in its sources array if a customer has attached sources.
  • Removes methods deprecated in Version 6.0.
  • Fixes property declarations missing strong/nullable identifiers.