Skip to content

Commit

Permalink
Merge pull request #31 from jukiginanjar/development
Browse files Browse the repository at this point in the history
Disable card.io, for testing
  • Loading branch information
jukiginanjar committed Jun 6, 2016
2 parents 4b8fd90 + fcfdb1f commit 2dcaf3d
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions MidtransKit/MidtransKit/VTCardListController.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
#import <MidtransCoreKit/VTPaymentCreditCard.h>
#import <MidtransCoreKit/VTTransactionDetails.h>

#import <CardIO.h>
//#import <CardIO.h>

@interface VTCardListController () <VTCardCellDelegate, VTAddCardControllerDelegate, UINavigationControllerDelegate, UIActionSheetDelegate, CardIOPaymentViewControllerDelegate>
@interface VTCardListController () <VTCardCellDelegate, VTAddCardControllerDelegate, UINavigationControllerDelegate, UIActionSheetDelegate/*, CardIOPaymentViewControllerDelegate*/>
@property (strong, nonatomic) IBOutlet UIPageControl *pageControl;

@property (strong, nonatomic) IBOutlet UIView *emptyCardView;
Expand Down Expand Up @@ -136,8 +136,12 @@ - (void)setCards:(NSMutableArray *)cards {
}

- (IBAction)addCardPressed:(id)sender {
UIActionSheet *inputSheet = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Input Manual", @"Scan With Camera", nil];
[inputSheet showInView:self.navigationController.view];
VTAddCardController *vc = [[VTAddCardController alloc] initWithCustomerDetails:self.customerDetails itemDetails:self.itemDetails transactionDetails:self.transactionDetails];
vc.delegate = self;
[self.navigationController pushViewController:vc animated:YES];

// UIActionSheet *inputSheet = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Input Manual", @"Scan With Camera", nil];
// [inputSheet showInView:self.navigationController.view];
}

- (id<UIViewControllerAnimatedTransitioning>)navigationController:(UINavigationController *)navigationController
Expand Down Expand Up @@ -269,18 +273,20 @@ - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
}
*/

/*
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
if (buttonIndex == 0) {
VTAddCardController *vc = [[VTAddCardController alloc] initWithCustomerDetails:self.customerDetails itemDetails:self.itemDetails transactionDetails:self.transactionDetails];
vc.delegate = self;
[self.navigationController pushViewController:vc animated:YES];
} else if (buttonIndex == 1) {
CardIOPaymentViewController *scanViewController = [[CardIOPaymentViewController alloc] initWithPaymentDelegate:self];
// scanViewController.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentViewController:scanViewController animated:YES completion:nil];
}
}
*/

/*
#pragma mark - CardIOPaymentViewControllerDelegate
/// This method will be called if the user cancels the scan. You MUST dismiss paymentViewController.
Expand Down Expand Up @@ -321,5 +327,5 @@ - (void)userDidProvideCreditCardInfo:(CardIOCreditCardInfo *)cardInfo inPaymentV
}
}];
}

*/
@end

0 comments on commit 2dcaf3d

Please sign in to comment.