CheckoutSelectionController.h 763 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
//
//  CheckoutSelectionController.h
//  Checkout
//
//  Created by Shopify.
//  Copyright (c) 2015 Shopify. All rights reserved.
//

@import UIKit;

@class CheckoutSelectionController;

typedef NS_ENUM(NSUInteger, CheckoutType) {
	CheckoutTypeNormal,
	CheckoutTypeApplePay
};

@protocol CheckoutSelectionControllerDelegate <NSObject>

- (void)checkoutSelectionControllerCancelled:(CheckoutSelectionController *)controller;
- (void)checkoutSelectionController:(CheckoutSelectionController *)controller selectedCheckoutType:(CheckoutType)checkoutType;

@end

@interface CheckoutSelectionController : UIViewController

@property (nonatomic, strong) NSURLRequest *checkoutRequest;
@property (nonatomic, weak) id <CheckoutSelectionControllerDelegate> delegate;

@end