Skip to content

Commit 5c5a12c

Browse files
author
Fauzan Erich Emmerling
authored
Merge pull request #480 from veritrans/fix-alertView-ios13
Fix alert view ios13
2 parents d447079 + ef92ff7 commit 5c5a12c

File tree

5 files changed

+2553
-31
lines changed

5 files changed

+2553
-31
lines changed

MidtransDemo/MidtransDemo.xcodeproj/project.pbxproj

+5-9
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@
522522
E56436F11E83A72F008726D0 = {
523523
CreatedOnToolsVersion = 8.2.1;
524524
DevelopmentTeam = G92YEQF267;
525-
ProvisioningStyle = Manual;
525+
ProvisioningStyle = Automatic;
526526
};
527527
E5C751651E8B912F001F47D9 = {
528528
CreatedOnToolsVersion = 8.2.1;
@@ -875,9 +875,7 @@
875875
baseConfigurationReference = 5C11021525267A24FA5F14A7 /* Pods-MidtransDemo.debug.xcconfig */;
876876
buildSettings = {
877877
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
878-
CODE_SIGN_IDENTITY = "iPhone Developer: Nanang Rafsanjani (77WYT367ML)";
879-
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Nanang Rafsanjani (77WYT367ML)";
880-
CODE_SIGN_STYLE = Manual;
878+
CODE_SIGN_STYLE = Automatic;
881879
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
882880
DEVELOPMENT_TEAM = G92YEQF267;
883881
FRAMEWORK_SEARCH_PATHS = (
@@ -889,7 +887,7 @@
889887
PRODUCT_BUNDLE_IDENTIFIER = com.midtrans.demo;
890888
PRODUCT_NAME = "$(TARGET_NAME)";
891889
PROVISIONING_PROFILE = "";
892-
PROVISIONING_PROFILE_SPECIFIER = "SDK Demo Dev";
890+
PROVISIONING_PROFILE_SPECIFIER = "";
893891
TARGETED_DEVICE_FAMILY = "1,2";
894892
};
895893
name = Debug;
@@ -899,9 +897,7 @@
899897
baseConfigurationReference = F724BE8B0AB574A14BDDE958 /* Pods-MidtransDemo.release.xcconfig */;
900898
buildSettings = {
901899
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
902-
CODE_SIGN_IDENTITY = "iPhone Distribution: MIDTRANS, PT (G92YEQF267)";
903-
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: MIDTRANS, PT (G92YEQF267)";
904-
CODE_SIGN_STYLE = Manual;
900+
CODE_SIGN_STYLE = Automatic;
905901
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
906902
DEVELOPMENT_TEAM = G92YEQF267;
907903
FRAMEWORK_SEARCH_PATHS = (
@@ -912,7 +908,7 @@
912908
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
913909
PRODUCT_BUNDLE_IDENTIFIER = com.midtrans.demo;
914910
PRODUCT_NAME = "$(TARGET_NAME)";
915-
PROVISIONING_PROFILE_SPECIFIER = "SDK Demo Adhoc";
911+
PROVISIONING_PROFILE_SPECIFIER = "";
916912
TARGETED_DEVICE_FAMILY = "1,2";
917913
};
918914
name = Release;

MidtransDemo/MidtransDemo/MDOptionsViewController.m

+3
Original file line numberDiff line numberDiff line change
@@ -282,9 +282,12 @@ - (void)initConfiguration{
282282
[opt3ds selectOptionAtIndex:1];
283283
[optSaveCard selectOptionAtIndex:1];
284284
[optAuth selectOptionAtIndex:3];
285+
[opt3ds selectOptionAtIndex:1];
285286
}
286287
else if (type == MTCreditCardPaymentTypeTwoclick) {
287288
[optSaveCard selectOptionAtIndex:1];
289+
[opt3ds selectOptionAtIndex:0];
290+
[optAuth selectOptionAtIndex:0];
288291
}
289292
});
290293

MidtransDemo/MidtransDemo/MDOrderViewController.m

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ - (void)viewDidLoad {
7878
merchantServerURL:merchantServer];
7979

8080
UICONFIG.hideStatusPage = NO;
81+
CC_CONFIG.secure3DEnabled = [[MDOptionManager shared].secure3DOption.value boolValue];
8182
CC_CONFIG.authenticationType = [[MDOptionManager shared].authTypeOption.value integerValue];
8283
CC_CONFIG.saveCardEnabled =[[MDOptionManager shared].saveCardOption.value boolValue];
8384
CC_CONFIG.acquiringBank = [[MDOptionManager shared].issuingBankOption.value integerValue];

MidtransKit/MidtransKit/classes/VTKlikbcaSuccessController.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ - (IBAction)helpPressed:(UIButton *)sender {
5656

5757
- (IBAction)finishPressed:(UIButton *)sender {
5858
NSDictionary *userInfo = @{TRANSACTION_RESULT_KEY:self.successViewModel.transactionResult};
59-
[[NSNotificationCenter defaultCenter] postNotificationName:TRANSACTION_SUCCESS object:nil userInfo:userInfo];
59+
[[NSNotificationCenter defaultCenter] postNotificationName:TRANSACTION_PENDING object:nil userInfo:userInfo];
6060

6161
[self dismissViewControllerAnimated:YES completion:nil];
6262
}

0 commit comments

Comments
 (0)