Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MyViewController *myViewController = [[MyViewController alloc] init];
- myViewController.url = url;
- myViewController.paReq = paReq;
- myViewController.md = md;
- [self.navigationController pushViewController:myViewController animated:true];
- //MyViewController.h
- @interface MyViewController : UIViewController<D3DSDelegate>
- @property (nonatomic, strong) NSString *url;
- @property (nonatomic, strong) NSString *md;
- @property (nonatomic, strong) NSString *paReq;
- @end
- //MyViewController.m
- #import "MyViewController.h"
- @implementation MyViewController
- - (void)viewDidLoad {
- [super viewDidLoad];
- D3DS *d3ds = [[D3DS alloc] init];
- [d3ds make3DSPaymentWithUIViewController:self andAcsURLString:_url andPaReqString:_paReq andTransactionIdString:_md];
- }
- - (void)authorizationCompletedWithMD:(NSString *)md andPares:(NSString *)paRes {
- printf(@"auth completed");
- }
- - (void)authorizationFailedWithHtml:(NSString *)html {
- printf(@"auth failed");
- }
- @end
Add Comment
Please, Sign In to add comment