diff --git a/CHANGELOG.md b/CHANGELOG.md index a1e0cb2d3a3..b10af6fa91c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,11 @@ -## 11.x.x 2017-XX-XX - +## 11.4.0 2017-10-20 * Restores `[STPCard brandFromString:]` method which was marked as deprecated in a recent version [#801](https://github.com/stripe/stripe-ios/pull/801) * Adds `[STPBankAccount metadata]` and `[STPCard metadata]` read-only accessors and improves annotation for `[STPSource metadata]` [#808](https://github.com/stripe/stripe-ios/pull/808) -* Un-deprecates `STPBackendAPIAdapter` and all associated methods. +* Un-deprecates `STPBackendAPIAdapter` and all associated methods. [#813](https://github.com/stripe/stripe-ios/pull/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](https://github.com/stripe/stripe-ios/pull/813) +* Adds the ability to set custom footers on view controllers managed by the SDK. [#792](https://github.com/stripe/stripe-ios/pull/792) +* `STPPaymentMethodsViewController` will now display saved card sources in addition to saved card tokens. [#810](https://github.com/stripe/stripe-ios/pull/810) +* Fixes a bug where certain requests would return a generic failed to parse response error instead of the actual API error. [#809](https://github.com/stripe/stripe-ios/pull/809) ## 11.3.0 2017-09-13 * Adds support for creating `STPSourceParams` for P24 source [#779](https://github.com/stripe/stripe-ios/pull/779) diff --git a/MIGRATING.md b/MIGRATING.md index f7544b5bc85..eb778b68921 100644 --- a/MIGRATING.md +++ b/MIGRATING.md @@ -1,6 +1,9 @@ ## Migration Guides -### Migration from versions < 11.3.0 +### Migrating from versions < 11.4.0 +* The `STPBackendAPIAdapter` protocol and all associated methods are no longer deprecated. We still recommend using `STPCustomerContext` to update a Stripe customer object on your behalf, rather than using your own implementation of `STPBackendAPIAdapter`. + +### Migrating from versions < 11.3.0 * Changes to `STPCard`, `STPCardParams`, `STPBankAccount`, and `STPBankAccountParams` * `STPCard` no longer subclasses from `STPCardParams`. You must now specifically create `STPCardParams` objects to create new tokens. * `STPBankAccount` no longer subclasses from `STPBankAccountParams`. @@ -12,7 +15,7 @@ ### Migrating from versions < 11.2.0 * `STPCustomer`'s `shippingAddress` property is now correctly annotated as nullable. Its type is an optional (`STPAddress?`) in Swift. -### Migration from versions < 11.0.0 +### Migrating from versions < 11.0.0 - We've greatly simplified the integration for `STPPaymentContext`. In order to migrate to the new `STPPaymentContext` integration using ephemeral keys, you'll need to: 1. On your backend, add a new endpoint that creates an ephemeral key for the Stripe customer associated with your user, and returns its raw JSON. Note that you should _not_ remove the 3 endpoints you added for your initial PaymentContext integration until you're ready to drop support for previous versions of your app. 2. In your app, make your API client class conform to `STPEphemeralKeyProvider` by adding a method that requests an ephemeral key from the endpoint you added in (1). diff --git a/Stripe.podspec b/Stripe.podspec index 33dfa0334c0..23ac7097b00 100644 --- a/Stripe.podspec +++ b/Stripe.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Stripe' - s.version = '11.3.0' + s.version = '11.4.0' s.summary = 'Stripe is a web-based API for accepting payments online.' s.license = { :type => 'MIT', :file => 'LICENSE' } s.homepage = 'https://stripe.com/docs/mobile/ios' diff --git a/Stripe/Info.plist b/Stripe/Info.plist index cedb4d63c3d..683f58d43dc 100644 --- a/Stripe/Info.plist +++ b/Stripe/Info.plist @@ -13,11 +13,11 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 11.3.0 + 11.4.0 CFBundleSignature ???? CFBundleVersion - 11.3.0 + 11.4.0 NSPrincipalClass diff --git a/Stripe/PublicHeaders/STPAPIClient.h b/Stripe/PublicHeaders/STPAPIClient.h index 7d40693139f..ae52a0f1605 100644 --- a/Stripe/PublicHeaders/STPAPIClient.h +++ b/Stripe/PublicHeaders/STPAPIClient.h @@ -20,7 +20,7 @@ FAUXPAS_IGNORED_IN_FILE(APIAvailability) /** The current version of this library. */ -static NSString *const STPSDKVersion = @"11.3.0"; +static NSString *const STPSDKVersion = @"11.4.0"; @class STPBankAccount, STPBankAccountParams, STPCard, STPCardParams, STPSourceParams, STPToken, STPPaymentConfiguration; diff --git a/VERSION b/VERSION index f628d2eafc5..72773deb895 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -11.3.0 +11.4.0 diff --git a/ci_scripts/build_documentation.sh b/ci_scripts/build_documentation.sh index 9dc924e6e55..537d2470d36 100755 --- a/ci_scripts/build_documentation.sh +++ b/ci_scripts/build_documentation.sh @@ -35,7 +35,7 @@ release_version="$(cat "${script_dir}/../VERSION")" info "Executing jazzy..." jazzy \ --config "${script_dir}/../.jazzy.yaml" \ - --github_file_prefix "https://github.com/stripe/stripe-ios/tree/v${release_version}" + --github-file-prefix "https://github.com/stripe/stripe-ios/tree/v${release_version}" # Verify jazzy exit code jazzy_exit_code="$?" diff --git a/docs/docs/Categories.html b/docs/docs/Categories.html index 0dc5c756cf4..49c8a0bb495 100644 --- a/docs/docs/Categories.html +++ b/docs/docs/Categories.html @@ -230,7 +230,7 @@