- 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
- 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
- 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. STPCustomer
'sshippingAddress
property is now correctly annotated as nullable.- Removed
STPCheckoutUnknownError
,STPCheckoutTooManyAttemptsError
, andSTPCustomerContextMissingKeyProviderError
. These errors will no longer occur.
- Adds stripeAccount property to
STPAPIClient
, set this to perform API requests on behalf of a connected account - Fixes the
routingNumber
property ofSTPBankAccount
so that it is populated when the information is available - Adds iOS Objective-C Style Guide
- 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.
- 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.
- 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]
.
- 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.
- 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.
- Adds button to billing/shipping entry screens to fill address information from the other one.
- Fixes and unifies view controller behavior around theming and nav bars.
- Adds month validity check to
validationStateForExpirationYear
- Changes some Apple Pay images to better conform to official guidelines.
- Changes STPPaymentCardTextField's card number placeholder to "4242..."
- Updates STPPaymentCardTextField's CVC placeholder so that it changes to "CVV" for Amex cards
- Fixes a regression introduced in v9.0.0 in which color in STPTheme is used as the background color for UINavigationBar
- Note: This will cause navigation bar theming to work properly as described in the Stripe iOS docs, but you may need to audit your custom theme settings if you based them on the actual behavior of 9.0-9.2
- If the navigation bar has a theme different than the view controller's theme, STP view controllers will use the bar's theme to style it's UIBarButtonItems
- Adds a fallback to using main bundle for localized strings lookup if locale is set to a language the SDK doesn't support
- Adds method to get a string of a card brand from
STPCardBrand
- Updated description of how to run tests in README
- Fixes crash when user cancels payment before STPBackendAPIAdapter methods finish
- Fixes bug where country picker wouldn't update when first selected.
- Moves FBSnapshotTestCase dependency to Cartfile.private. No changes if you are not using Carthage.
- Adds prebuilt UI for collecting shipping information.
- Adds localized strings for 7 languages: de, es, fr, it, ja, nl, zh-Hans.
- Slight redesign to card/billing address entry screen.
- Improved internationalization for State/Province/County address field.
- Adds new Mastercard 2-series BIN ranges.
- Fixes an issue where callbacks may be run on the wrong thread.
- Fixes UIAppearance compatibility in STPPaymentCardTextField.
- Fixes a crash when changing application language via an Xcode scheme.
- Change minimum requirements to iOS 8 and Xcode 8
- Adds "app extension API only" support.
- Updates Swift example app to Swift 3
- Various fixes to ObjC example app
- Add ability to set currency for managed accounts when adding card
- Fix broken links for Privacy Policy/Terms of Service for Remember Me feature
- Sort countries in picker alphabetically by name instead of ISO code
- Make "County" field optional on billing address screen.
- PKPayment-related methods are now annotated as available in iOS8+ only
- Optimized speed of input sanitation methods (thanks @kballard!)
- Improved internationalization on billing address forms
- Users in countries that don't use postal codes will no longer see that field.
- The country field is now auto filled in with the phone's region
- Changing the selected country will now live update other fields on the form (such as State/County or Zip/Postal Code).
- Fixed an issue where certain Cocoapods configurations could result in Stripe resource files being used in place of other frameworks' or the app's resources.
- Fixed an issue where when using Apple Pay, STPPaymentContext would fire two
didFinishWithStatus
messages. - Fixed the
deviceSupportsApplePay
method to also check for Discover cards. - Removed keys from Stripe.bundle's Info.plist that were causing iTunes Connect to sometimes error on app submission.
- You can now optionally use an array of PKPaymentSummaryItems to set your payment amount, if you would like more control over how Apple Pay forms are rendered.
- Updated credit card and Apple Pay icons.
- Fixed some images not being included in the resources bundle target.
- Non-US locales now have an alphanumeric keyboard for postal code entry.
- Modals now use UIModalPresentationStyleFormSheet.
- Added more accessibility labels.
- STPPaymentCardTextField now conforms to UIKeyInput (thanks @theill).
- Fixed an issue with Apple Pay payments not using the correct currency.
- View controllers now update their status bar and scroll view indicator styles based on their theme.
- SMS code screen now offers to paste copied codes.
- Fixed an issue with some Cocoapods installations
- Fixed an issue with custom theming of Stripe UI
- Fixed error handling in STPAddCardViewController
- Added prebuilt UI for collecting and managing card information.
- Fixed an issue with validating certain Visa cards.
- Added Discover support for Apple Pay
- Add the now-required
accountHolderName
andaccountHolderType
properties to STPBankAccountParams - We now record performance metrics for the /v1/tokens API - to disable this behavior, call [Stripe disableAnalytics].
- You can now demo the SDK more easily by running
pod try stripe
. - This release also removes the deprecated Checkout functionality from the SDK.
- Added an
additionalAPIParameters
field to STPCardParams and STPBankAccountParams for sending additional values to the API - useful for beta features. Similarly, added anallResponseFields
property to STPToken, STPCard, and STPBankAccount for accessing fields in the response that are not yet refelected in those classes' @properties.
- Renamed card on STPPaymentCardTextField to cardParams.
- You can now set an STPPaymentCardTextField's contents programmatically by setting cardParams to an STPCardParams object.
- Added delegate methods for responding to didBeginEditing events in STPPaymentCardTextField.
- Added a UIImage category for accessing our card icon images
- Fixed deprecation warnings for deployment targets >= iOS 9.0
- Splits logic in STPCard into 2 classes - STPCard and STPCardParams. STPCardParams is for making requests to the Stripe API, while STPCard represents the response (you'll almost certainly want just to replace any usage of STPCard in your app with STPCardParams). This also applies to STPBankAccount and the newly-created STPBankAccountParams.
- Version 6.0.1 fixes a minor Cocoapods issue.
- Adds STPPaymentCardTextField, a new version of github.com/stripe/PaymentKit featuring many bugfixes. It's useful if you need a pre-built credit card entry form.
- Adds the currency param to STPCard for those using managed accounts & debit card payouts.
- Versions 5.1.1 and 5.1.2 fix minor issues with CocoaPods installation
- Version 5.1.3 contains bug fixes for STPPaymentCardTextField.
- Version 5.1.4 improves compatibility with iOS 9.
- Fix an issue with Carthage installation
- Fix an issue with CocoaPods frameworks
- Deprecate native Stripe Checkout
- Fix a compiler warning
- Versions 4.0.1 and 4.0.2 fix minor issues with CocoaPods and Carthage installation.
- Remove STPPaymentPresenter
- Support for latest ApplePayStubs
- Add nullability annotations to improve Swift support (note: this now requires Swift 1.2)
- Bug fixes
- Add support for native Stripe Checkout, as well as STPPaymentPresenter for automatically using Checkout as a fallback for Apple Pay
- Add OSX support, including Checkout
- Add framework targets and Carthage support
- It's safe to remove the STRIPE_ENABLE_APPLEPAY compiler flag after this release.
- Migrate code into STPAPIClient
- Add 'brand' and 'funding' properties to STPCard
- Add bank account tokenization methods
- Add billing address fields to our Apple Pay API
- Various bug fixes and code improvements
- Move Apple Pay testing functionality into a separate project, ApplePayStubs. For more info, see github.com/stripe/ApplePayStubs.
- Improve the provided example app
- Remove token retrieval API method
- Refactor functional tests to use new XCTestCase functionality
- Group ApplePay code in a CocoaPods subspec
- Move ApplePay code behind a compiler flag to avoid warnings from Apple when accidentally including it
- Fix some small bugs related to ApplePay and iOS8
- Add support for native payments via Pay
- Removed PaymentKit as a dependency. If you'd like to use it, you may still do so by including it separately.
- Removed STPView. PaymentKit provides a near-identical version of this functionality if you need to migrate.
- Improve example project
- Various code fixes
- Fixed an issue where tokenization requests would fail under iOS 6 due to SSL certificate verification
- Send some basic version and device details with requests for debugging.
- Added -description to STPToken
- Fixed some minor code nits
- Modernized code
- Added test suite for SSL certificate expiry/revokation
- You can now set STPView's delegate from Interface Builder
- API methods now verify the server's SSL certificate against a preset blacklist.
- Fixed some bugs with SSL verification.
- Note: This version now requires the
Security
framework. You will need to add this to your app if you're not using CocoaPods.
- Upgraded tests from OCUnit to XCTest
- Fixed an issue with the SenTestingKit dependency
- Removed some dead code
- Fixed: Some example files had target memberships set for StripeiOS and iOSTest.
- Fixed: The example publishable key was expired.
- Fixed: Podspec did not pass linting.
- Some fixes for 64-bit.
- Many improvements to the README.
- Fixed example under iOS 7
- Some source code cleaning and modernization.
- Add exceptions for null successHandler and errorHandler.
- Added the ability to POST the created token to a URL.
- Made STPCard properties nonatomic.
- Moved PaymentKit to be a submodule; added to Podfile as a dependency.
- Fixed some warnings caught by the static analyzer (thanks to jcjimenez!)
- Add CocoaPods support
- Change directory structure of bindings to make it easier to install
- Initial release
Special thanks to: Todd Heasley, jcjimenez.