diff --git a/IngenicoConnectExample/ICAppConstants.h b/IngenicoConnectExample/ICAppConstants.h index 7717fc0..60394e8 100644 --- a/IngenicoConnectExample/ICAppConstants.h +++ b/IngenicoConnectExample/ICAppConstants.h @@ -23,5 +23,5 @@ #define kICBoletoBancarioId @"1503" #define kICBancontactId @"3012" #define kICArvatoIds [NSSet setWithArray:@[@"9000", @"9001"]] -#define kICApplicationIdentifier @"iOS Example Application/v1.8.1" +#define kICApplicationIdentifier @"iOS Example Application/v1.9.0" #endif diff --git a/IngenicoConnectExample/ICStartViewController.m b/IngenicoConnectExample/ICStartViewController.m index 25c8a28..47b84a5 100644 --- a/IngenicoConnectExample/ICStartViewController.m +++ b/IngenicoConnectExample/ICStartViewController.m @@ -46,9 +46,9 @@ @interface ICStartViewController () *components; @@ -412,9 +370,11 @@ - (void)buyButtonTapped:(UIButton *)sender [StandardUserDefaults setObject:merchantId forKey:kICMerchantId]; } [StandardUserDefaults setInteger:self.amountValue forKey:kICPrice]; - [StandardUserDefaults setInteger:[self.countryCodePicker selectedRowInComponent:0] forKey:kICCountryCode]; - [StandardUserDefaults setInteger:[self.currencyCodePicker selectedRowInComponent:0] forKey:kICCurrency]; - + NSString *countryCode = self.countryCodeTextField.text; + [StandardUserDefaults setObject:countryCode forKey:kICCountryCode]; + NSString *currencyCode = self.currencyCodeTextField.text; + [StandardUserDefaults setObject:currencyCode forKey:kICCurrency]; + // *************************************************************************** // // The IngenicoConnect SDK supports processing payments with instances of the @@ -452,8 +412,7 @@ - (void)buyButtonTapped:(UIButton *)sender self.session = [ICSession sessionWithClientSessionId:clientSessionId customerId:customerId baseURL:baseURL assetBaseURL:assetsBaseURL appIdentifier:kICApplicationIdentifier]; - NSString *countryCode = [self.countryCodes objectAtIndex:[self.countryCodePicker selectedRowInComponent:0]]; - NSString *currencyCode = [self.currencyCodes objectAtIndex:[self.currencyCodePicker selectedRowInComponent:0]]; + BOOL isRecurring = self.isRecurringSwitch.on; // *************************************************************************** diff --git a/Podfile b/Podfile index 6165c4c..86e7c6d 100644 --- a/Podfile +++ b/Podfile @@ -6,7 +6,7 @@ target 'IngenicoConnectExample' do # use_frameworks! # Pods for IngenicoConnectExample - pod 'IngenicoConnectSDK', '~> 5.6' + pod 'IngenicoConnectSDK', '~> 5.9' pod 'SVProgressHUD' target 'IngenicoConnectExampleTests' do