Skip to content

Commit

Permalink
Fixed crash if PayPal is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Kostas Karayannis committed Jan 25, 2019
1 parent 0d43052 commit 10b2e67
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Kite-Print-SDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'Kite-Print-SDK'
spec.version = '7.0.1'
spec.version = '7.0.2'
spec.license = { :type => 'MIT', :file => 'Kite-SDK/LICENSE' }
spec.homepage = 'https://github.com/OceanLabs/iOS-Print-SDK'
spec.authors = {'Deon Botha' => 'deon@oceanlabs.co'}
Expand Down
3 changes: 3 additions & 0 deletions Kite-SDK/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 7.0.2
- Fixed crash if PayPal is not installed

### 7.0.1
- Updated for the newest Photobook

Expand Down
2 changes: 1 addition & 1 deletion Kite-SDK/PSPrintSDK/OLConstants.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#import "OLConstants.h"

NSString *const kOLKiteSDKVersion = @"7.0.1";
NSString *const kOLKiteSDKVersion = @"7.0.2";
NSString *const kOLKiteSDKErrorDomain = @"co.oceanlabs.kOLKiteSDKErrorDomain";
NSString *const kNotificationTemplateSyncComplete = @"co.oceanlabs.pssdk.notification.kNotificationSyncComplete";
NSString *const kNotificationTemplateSyncPartialComplete = @"co.oceanlabs.pssdk.notification.kNotificationTemplateSyncPartialComplete";
Expand Down
2 changes: 1 addition & 1 deletion Kite-SDK/PSPrintSDK/OLProductTemplateSyncRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ - (void)fetchTemplatesWithURL:(NSURL *)url templateAccumulator:(NSMutableArray *
id paymentKeys = json[@"payment_keys"];
if ([paymentKeys isKindOfClass:[NSDictionary class]]){
id paypalKeys = paymentKeys[@"paypal"];
if([paypalKeys isKindOfClass:[NSDictionary class]]){
if([OLPayPalWrapper isPayPalAvailable] && [paypalKeys isKindOfClass:[NSDictionary class]]){
id publicKey = paypalKeys[@"public_key"];
if ([publicKey isKindOfClass:[NSString class]]){
if ([OLKitePrintSDK environment] == OLKitePrintSDKEnvironmentSandbox){
Expand Down

0 comments on commit 10b2e67

Please sign in to comment.