Skip to content

Commit

Permalink
version 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit Jindal committed Jan 28, 2016
1 parent bcee020 commit c6c4338
Show file tree
Hide file tree
Showing 71 changed files with 1,408 additions and 2,187 deletions.
Binary file removed .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
iOS sample app with sdk version 3.3 and CB version 4.3
1 change: 0 additions & 1 deletion README.md

This file was deleted.

820 changes: 418 additions & 402 deletions SeamlessTestApp.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions SeamlessTestApp/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ - (void)applicationWillResignActive:(UIApplication *)application {
}

- (void)applicationDidEnterBackground:(UIApplication *)application {
[self.window endEditing:YES];
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
Expand Down
2 changes: 1 addition & 1 deletion SeamlessTestApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>TAv3.3v4.2</string>
<string>TAv3.3v4.3</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
Expand Down
2 changes: 1 addition & 1 deletion SeamlessTestApp/PayUSAStartScreenViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ - (void)viewDidLoad {
[self.view addGestureRecognizer:singleTap];
self.defaultActivityIndicator = [[iOSDefaultActivityIndicator alloc]init];
self.paymentParam = [PayUModelPaymentParams new];
self.paymentParam.key = @"0MQaQP";
self.paymentParam.key = @"0MQaQP";//@"smsplus";//@"obScKz";//@"DXOF8m"; //gtKFFx //0MQaQP //DXOF8m //2Hl5U0En //PqvxqV//obScKz
self.paymentParam.amount = @"10.0";
self.paymentParam.productInfo = @"Nokia";
self.paymentParam.firstName = @"Ram";
Expand Down
18 changes: 8 additions & 10 deletions SeamlessTestApp/PayUUIPaymentUIWebViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ -(void)configurCB{
self.CBC.merchantKey = self.paymentParam.key;
self.CBC.txnID = self.paymentParam.transactionID;
self.CBC.isAutoOTPSelect = YES;
self.CBC.isMagicRetry = YES;
self.CBC.cbWebViewResponseDelegate = self;
[self.CBC payUActivityIndicator];
[self.CBC initialSetup];

if (self.CBC == nil) {
[self configurePayUResponse];
}

}

- (void)viewWillAppear:(BOOL)animated{
Expand Down Expand Up @@ -118,10 +120,9 @@ -(void)PayUFailureResponse:(id)response{
[[NSNotificationCenter defaultCenter] postNotificationName:@"paymentResponse" object:[NSMutableData dataWithData:response ]];
}

-(void)PayUConnectionError:(id)notification{
self.alertView = [[UIAlertView alloc]initWithTitle:@"Network Error" message:@"Seems you are not connected to internet" delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:nil];
self.alertView.tag = 501;
[self.alertView show];
-(void) PayUConnectionError:(NSDictionary *)notification
{
// PAYUALERT([notification objectForKey:IS_MR_ENABLED], [notification objectForKey:IS_MR_WINDOW_SHOWN]);
}

-(void)startActivityIndicator{
Expand All @@ -138,19 +139,16 @@ -(void)stopActivityIndicator{

-(BOOL) navigationShouldPopOnBackButton
{
self.alertView = [[UIAlertView alloc]initWithTitle:@"Confirmation" message:@"Do you want to cancel this transaction?" delegate:self cancelButtonTitle:@"No" otherButtonTitles:@"Yes", nil];
self.alertView.tag = 502;
self.alertView = [[UIAlertView alloc]initWithTitle:@"Confirmation" message:@"Do you want to cancel this transaction?" delegate:self cancelButtonTitle:@"No" otherButtonTitles:@"Yes", nil] ;
[self.alertView show];
return NO;
}

- (void)alertView:(UIAlertView *)alertView willDismissWithButtonIndex:(NSInteger)buttonIndex
{
if((buttonIndex==1 && alertView.tag ==502 )) {
if(buttonIndex==1) {
[self.navigationController popToRootViewControllerAnimated:true];
}
}



@end
@end

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit c6c4338

Please sign in to comment.