Skip to content

Instantly share code, notes, and snippets.

@ademcan
Created March 11, 2020 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ademcan/25601e6869e3d2874984236c6b1f013c to your computer and use it in GitHub Desktop.
Save ademcan/25601e6869e3d2874984236c6b1f013c to your computer and use it in GitHub Desktop.
#import <Foundation/Foundation.h>
#import <Stripe/Stripe.h>
#import "CheckoutViewController.h"
#import "AppDelegate.h"
@interface CheckoutViewController ()
@end
@implementation CheckoutViewController
#pragma mark - STPAuthenticationContext
- (UIViewController *)authenticationPresentingViewController {
AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
return delegate.rootViewController;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment