Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Release 1.7.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments authored and jenkins committed Nov 17, 2020
1 parent 84ab631 commit 18265ed
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 7 deletions.
2 changes: 1 addition & 1 deletion IngenicoConnectExample/ICAppConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
#define kICBoletoBancarioId @"1503"
#define kICBancontactId @"3012"
#define kICArvatoIds [NSSet setWithArray:@[@"9000", @"9001"]]
#define kICApplicationIdentifier @"iOS Example Application/v1.6.5"
#define kICApplicationIdentifier @"iOS Example Application/v1.7.0"
#endif
11 changes: 9 additions & 2 deletions IngenicoConnectExample/ICCardProductViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,17 @@ -(ICTextFieldTableViewCell *)cellForTextField:(ICFormRowTextField *)row tableVie

if ([row.paymentProductField.identifier isEqualToString:@"cardNumber"]) {
if([self.confirmedPaymentProducts containsObject:self.paymentItem.identifier]) {
UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 30, 30)];
CGFloat size = cell.frame.size.height * 0.8;
CGFloat padding = cell.frame.size.height * 0.1;

UIView *outerView = [[UIView alloc]initWithFrame:CGRectMake(padding, padding, size, size)];
UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, size, size)];
imageView.contentMode = UIViewContentModeScaleAspectFit;
[outerView addSubview:imageView];
outerView.contentMode = UIViewContentModeScaleAspectFit;

imageView.image = row.logo;
cell.rightView = imageView;
cell.rightView = outerView;
}

}
Expand Down
7 changes: 6 additions & 1 deletion IngenicoConnectExample/ICFormRowsConverter.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#import <IngenicoConnectSDK/ICValidationErrorAllowed.h>
#import <IngenicoConnectSDK/ICValidationErrorEmailAddress.h>
#import <IngenicoConnectSDK/ICValidationErrorTermsAndConditions.h>
#import <IngenicoConnectSDK/ICResidentIdNumberError.h>

#import "ICFormRowDate.h"
@interface ICFormRowsConverter ()
Expand Down Expand Up @@ -195,7 +196,11 @@ + (NSString *)errorMessageForError:(ICValidationError *)error withCurrency:(BOOL
errorMessageKey = [NSString stringWithFormat:errorMessageFormat, @"required"];
errorMessageValue = NSLocalizedStringFromTableInBundle(errorMessageKey, kICSDKLocalizable, [ICFormRowsConverter sdkBundle], nil);
errorMessage = errorMessageValue;
} else {
} else if (errorClass == [ICResidentIdNumberError class]) {
errorMessageKey = [NSString stringWithFormat:errorMessageFormat, @"residentIdNumber"];
errorMessageValue = NSLocalizedStringFromTableInBundle(errorMessageKey, kICSDKLocalizable, [ICFormRowsConverter sdkBundle], nil);
errorMessage = errorMessageValue;
} else {
[NSException raise:@"Invalid validation error" format:@"Validation error %@ is invalid", error];
}
return errorMessage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,13 @@ - (void)showApplePaySheetForPaymentProduct:(ICPaymentProduct *)paymentProduct wi
[self generateSummaryItems];

PKPaymentRequest *paymentRequest = [[PKPaymentRequest alloc] init];
[paymentRequest setCountryCode:self.context.countryCode];

if (paymentProduct.acquirerCountry != nil) {
[paymentRequest setCountryCode:paymentProduct.acquirerCountry];
} else {
[paymentRequest setCountryCode:self.context.countryCode];
}

[paymentRequest setCurrencyCode:self.context.amountOfMoney.currencyCode];
[paymentRequest setSupportedNetworks:paymentProductNetworks.paymentProductNetworks];
[paymentRequest setPaymentSummaryItems:self.summaryItems];
Expand Down
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ target 'IngenicoConnectExample' do
# use_frameworks!

# Pods for IngenicoConnectExample
pod 'IngenicoConnectSDK', '~> 5.1'
pod 'IngenicoConnectSDK', '~> 5.3'
pod 'SVProgressHUD'

target 'IngenicoConnectExampleTests' do
Expand Down
2 changes: 1 addition & 1 deletion Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- IngenicoConnectSDK (5.1.0):
- IngenicoConnectSDK (5.3.0):
- AFNetworking (~> 3.0)
- SVProgressHUD (2.2.5)

Expand Down

0 comments on commit 18265ed

Please sign in to comment.