From f5a989ec23d23cea2261b5ad7b79fcc6ebab1551 Mon Sep 17 00:00:00 2001 From: Ben Guo Date: Thu, 21 Jan 2016 16:37:52 -0500 Subject: [PATCH 1/6] update version --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 6d54bbd7751..dfda3e0b4f0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -6.0.1 \ No newline at end of file +6.1.0 From d06ca57ddb435123f11d43e7806fa4d70a8f8c52 Mon Sep 17 00:00:00 2001 From: Ben Guo Date: Thu, 21 Jan 2016 16:45:06 -0500 Subject: [PATCH 2/6] update CHANGELOG --- CHANGELOG | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 5ae5da10bd3..012334361c5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,10 @@ +== 6.1.0 2016-01-21 +* 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 + == 6.0.0 2015-10-19 * 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. @@ -103,7 +110,7 @@ === 1.0.2 2013-09-09 -* Add exceptions for null successHandler and errorHandler. +* 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. From 9027ece0b8f39136aa3967c89fc9df67cc08c5f2 Mon Sep 17 00:00:00 2001 From: Ben Guo Date: Thu, 21 Jan 2016 16:46:07 -0500 Subject: [PATCH 3/6] fix MIGRATING typo --- MIGRATING.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MIGRATING.md b/MIGRATING.md index 9677abac4a1..231c906e5b5 100644 --- a/MIGRATING.md +++ b/MIGRATING.md @@ -2,7 +2,7 @@ ### Migrating from versions < 6.0 -6.0 moves most of the contents of `STPCard` into a new class, `STPCardParams`, which represents a request to the Stripe API. `STPCard` now only refers to responses from the Stripe API. Most apps should be able to simply replace all usage of `STPCard` with `STPCardParams` - you should only use `STPCard if you're dealing with an API response, e.g. a card attached to an `STPToken`. This renaming has been done in a way that will avoid breaking changes, although using `STPCard`s to make requests to the Stripe API will produce deprecation warnings. +6.0 moves most of the contents of `STPCard` into a new class, `STPCardParams`, which represents a request to the Stripe API. `STPCard` now only refers to responses from the Stripe API. Most apps should be able to simply replace all usage of `STPCard` with `STPCardParams` - you should only use `STPCard` if you're dealing with an API response, e.g. a card attached to an `STPToken`. This renaming has been done in a way that will avoid breaking changes, although using `STPCard`s to make requests to the Stripe API will produce deprecation warnings. ### Migrating from versions < 5.0 @@ -68,4 +68,3 @@ To validate `STPCard` properties individually, you should use the following: These methods follow the validation method convention used by [key-value validation](http://developer.apple.com/library/mac/#documentation/cocoa/conceptual/KeyValueCoding/Articles/Validation.html). So, you can use these methods by invoking them directly, or by calling `[card validateValue:forKey:error]` for a property on the `STPCard` object. When using these validation methods, you will want to set the property on your card object when a property does validate before validating the next property. This allows the methods to use existing properties on the card correctly to validate a new property. For example, validating `5` for the `expMonth` property will return YES if no `expYear` is set. But if `expYear` is set and you try to set `expMonth` to 5 and the combination of `expMonth` and `expYear` is in the past, `5` will not validate. The order in which you call the validate methods does not matter for this though. - From b2a28851d1ebec5de1c022a4acb3fb32e8e24cbc Mon Sep 17 00:00:00 2001 From: Ben Guo Date: Thu, 21 Jan 2016 16:47:18 -0500 Subject: [PATCH 4/6] update STPSDKVersion --- Stripe/PublicHeaders/STPAPIClient.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Stripe/PublicHeaders/STPAPIClient.h b/Stripe/PublicHeaders/STPAPIClient.h index 5fbfb0dca97..dfdb331e9ba 100644 --- a/Stripe/PublicHeaders/STPAPIClient.h +++ b/Stripe/PublicHeaders/STPAPIClient.h @@ -8,7 +8,7 @@ #import -static NSString *const __nonnull STPSDKVersion = @"6.0.1"; +static NSString *const __nonnull STPSDKVersion = @"6.1.0"; @class STPBankAccount, STPBankAccountParams, STPCard, STPCardParams, STPToken; From b857a39399f68d968dccaa1cd2f788cb5d3e0429 Mon Sep 17 00:00:00 2001 From: Ben Guo Date: Thu, 21 Jan 2016 16:48:34 -0500 Subject: [PATCH 5/6] update Info.plist --- Stripe.xcodeproj/project.pbxproj | 11 ----------- Stripe/Info.plist | 4 ++-- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/Stripe.xcodeproj/project.pbxproj b/Stripe.xcodeproj/project.pbxproj index 1b6dc0eaced..fce694f8b67 100644 --- a/Stripe.xcodeproj/project.pbxproj +++ b/Stripe.xcodeproj/project.pbxproj @@ -488,7 +488,6 @@ 04CDB5251A5F3A9300B854EE /* STPCardTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = STPCardTest.m; sourceTree = ""; }; 04CDB5261A5F3A9300B854EE /* STPCertTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = STPCertTest.m; sourceTree = ""; }; 04CDB5271A5F3A9300B854EE /* STPTokenTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = STPTokenTest.m; sourceTree = ""; }; - 04CDB5621A5F3D2000B854EE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 04CDE5B41BC1F1F100548833 /* STPCardParams.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = STPCardParams.m; sourceTree = ""; }; 04CDE5BB1BC1F21500548833 /* STPCardParams.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = STPCardParams.h; path = PublicHeaders/STPCardParams.h; sourceTree = ""; }; 04CDE5C11BC20AF800548833 /* STPBankAccountParams.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = STPBankAccountParams.m; sourceTree = ""; }; @@ -753,21 +752,11 @@ 04CDB5271A5F3A9300B854EE /* STPTokenTest.m */, 04CB86B81BA89CD400E4F61E /* PKPayment+StripeTest.m */, C178CD441C45607D00851C69 /* UIImage+StripeTest.m */, - 04CDB5611A5F3D2000B854EE /* Supporting Files */, ); name = StripeTests; path = Tests/Tests; sourceTree = ""; }; - 04CDB5611A5F3D2000B854EE /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 04CDB5621A5F3D2000B854EE /* Info.plist */, - ); - name = "Supporting Files"; - path = ../../StripeOSXTests; - sourceTree = ""; - }; 04F39F091AEF2AFE005B926E /* BuildConfigurations */ = { isa = PBXGroup; children = ( diff --git a/Stripe/Info.plist b/Stripe/Info.plist index 2a0b2b14881..5f7ff7523c9 100644 --- a/Stripe/Info.plist +++ b/Stripe/Info.plist @@ -13,11 +13,11 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 6.0.1 + 6.1.0 CFBundleSignature ???? CFBundleVersion - 6.0.1 + 6.1.0 NSPrincipalClass From e6e499f305fb59270711e6185e48a6bd9e8cbd49 Mon Sep 17 00:00:00 2001 From: Ben Guo Date: Thu, 21 Jan 2016 16:49:46 -0500 Subject: [PATCH 6/6] update podspec --- Stripe.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Stripe.podspec b/Stripe.podspec index 17c442ec2b8..3bc27f246cc 100644 --- a/Stripe.podspec +++ b/Stripe.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Stripe' - s.version = '6.0.1' + s.version = '6.1.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'