Skip to content

Commit 0e0ffc6

Browse files
committed
Merge pull request #296 from stripe/bg-6.1.0
Release 6.1.0
2 parents 4686d80 + e6e499f commit 0e0ffc6

File tree

7 files changed

+14
-19
lines changed

7 files changed

+14
-19
lines changed

CHANGELOG

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
== 6.1.0 2016-01-21
2+
* Renamed card on STPPaymentCardTextField to cardParams.
3+
* You can now set an STPPaymentCardTextField's contents programmatically by setting cardParams to an STPCardParams object.
4+
* Added delegate methods for responding to didBeginEditing events in STPPaymentCardTextField.
5+
* Added a UIImage category for accessing our card icon images
6+
* Fixed deprecation warnings for deployment targets >= iOS 9.0
7+
18
== 6.0.0 2015-10-19
29
* 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.
310
* Version 6.0.1 fixes a minor Cocoapods issue.
@@ -103,7 +110,7 @@
103110

104111
=== 1.0.2 2013-09-09
105112

106-
* Add exceptions for null successHandler and errorHandler.
113+
* Add exceptions for null successHandler and errorHandler.
107114
* Added the ability to POST the created token to a URL.
108115
* Made STPCard properties nonatomic.
109116
* Moved PaymentKit to be a submodule; added to Podfile as a dependency.

MIGRATING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Migrating from versions < 6.0
44

5-
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.
5+
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.
66

77
### Migrating from versions < 5.0
88

@@ -68,4 +68,3 @@ To validate `STPCard` properties individually, you should use the following:
6868
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.
6969

7070
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.
71-

Stripe.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'Stripe'
3-
s.version = '6.0.1'
3+
s.version = '6.1.0'
44
s.summary = 'Stripe is a web-based API for accepting payments online.'
55
s.license = { :type => 'MIT', :file => 'LICENSE' }
66
s.homepage = 'https://stripe.com/docs/mobile/ios'

Stripe.xcodeproj/project.pbxproj

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,6 @@
488488
04CDB5251A5F3A9300B854EE /* STPCardTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = STPCardTest.m; sourceTree = "<group>"; };
489489
04CDB5261A5F3A9300B854EE /* STPCertTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = STPCertTest.m; sourceTree = "<group>"; };
490490
04CDB5271A5F3A9300B854EE /* STPTokenTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = STPTokenTest.m; sourceTree = "<group>"; };
491-
04CDB5621A5F3D2000B854EE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
492491
04CDE5B41BC1F1F100548833 /* STPCardParams.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = STPCardParams.m; sourceTree = "<group>"; };
493492
04CDE5BB1BC1F21500548833 /* STPCardParams.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = STPCardParams.h; path = PublicHeaders/STPCardParams.h; sourceTree = "<group>"; };
494493
04CDE5C11BC20AF800548833 /* STPBankAccountParams.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = STPBankAccountParams.m; sourceTree = "<group>"; };
@@ -753,21 +752,11 @@
753752
04CDB5271A5F3A9300B854EE /* STPTokenTest.m */,
754753
04CB86B81BA89CD400E4F61E /* PKPayment+StripeTest.m */,
755754
C178CD441C45607D00851C69 /* UIImage+StripeTest.m */,
756-
04CDB5611A5F3D2000B854EE /* Supporting Files */,
757755
);
758756
name = StripeTests;
759757
path = Tests/Tests;
760758
sourceTree = "<group>";
761759
};
762-
04CDB5611A5F3D2000B854EE /* Supporting Files */ = {
763-
isa = PBXGroup;
764-
children = (
765-
04CDB5621A5F3D2000B854EE /* Info.plist */,
766-
);
767-
name = "Supporting Files";
768-
path = ../../StripeOSXTests;
769-
sourceTree = "<group>";
770-
};
771760
04F39F091AEF2AFE005B926E /* BuildConfigurations */ = {
772761
isa = PBXGroup;
773762
children = (

Stripe/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
<key>CFBundlePackageType</key>
1414
<string>FMWK</string>
1515
<key>CFBundleShortVersionString</key>
16-
<string>6.0.1</string>
16+
<string>6.1.0</string>
1717
<key>CFBundleSignature</key>
1818
<string>????</string>
1919
<key>CFBundleVersion</key>
20-
<string>6.0.1</string>
20+
<string>6.1.0</string>
2121
<key>NSPrincipalClass</key>
2222
<string></string>
2323
</dict>

Stripe/PublicHeaders/STPAPIClient.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#import <Foundation/Foundation.h>
1010

11-
static NSString *const __nonnull STPSDKVersion = @"6.0.1";
11+
static NSString *const __nonnull STPSDKVersion = @"6.1.0";
1212

1313
@class STPBankAccount, STPBankAccountParams, STPCard, STPCardParams, STPToken;
1414

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0.1
1+
6.1.0

0 commit comments

Comments
 (0)