├── GHApplePay ├── GHApplePay.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── project.pbxproj └── GHApplePay │ ├── ViewController.h │ ├── AppDelegate.h │ ├── main.m │ ├── GHApplePay │ ├── GHApplePay.h │ └── GHApplePay.m │ ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ ├── Info.plist │ ├── Base.lproj │ ├── Main.storyboard │ └── LaunchScreen.storyboard │ ├── ViewController.m │ └── AppDelegate.m └── .gitignore /GHApplePay/GHApplePay.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /GHApplePay/GHApplePay/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // GHApplePay 4 | // 5 | // Created by shen_gh on 16/3/1. 6 | // Copyright © 2016年 com.joinup(Beijing). All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /GHApplePay/GHApplePay/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // GHApplePay 4 | // 5 | // Created by shen_gh on 16/3/1. 6 | // Copyright © 2016年 com.joinup(Beijing). All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /GHApplePay/GHApplePay/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // GHApplePay 4 | // 5 | // Created by shen_gh on 16/3/1. 6 | // Copyright © 2016年 com.joinup(Beijing). All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /GHApplePay/GHApplePay/GHApplePay/GHApplePay.h: -------------------------------------------------------------------------------- 1 | // 2 | // GHApplePay.h 3 | // GHApplePay 4 | // 5 | // Created by shen_gh on 16/3/1. 6 | // Copyright © 2016年 com.joinup(Beijing). All rights reserved. 7 | // 8 | 9 | /** 10 | * 快速接入Apple Pay 11 | * 12 | */ 13 | 14 | #import 15 | #import //这是苹果提供给开发者ApplePay操作相关的kit 16 | 17 | @protocol GHApplePayDelegate 18 | 19 | /** 20 | * 支付成功 21 | */ 22 | - (void)GHApplePayDidSuccess; 23 | 24 | /** 25 | * 支付失败 26 | */ 27 | - (void)GHApplePayDidFailure; 28 | 29 | @end 30 | 31 | @interface GHApplePay : NSObject 32 | 33 | 34 | @property (nonatomic,assign) iddelegate; 35 | 36 | /** 37 | * 初始化init 创建 38 | * 39 | * @param payReceiver 收款方 40 | * @param amount 金额 41 | * 42 | * @return self 43 | */ 44 | - (instancetype)initWithPayReceiver:(NSString *)payReceiver amount:(NSString *)amount presentVC:(UIViewController *)vc; 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata 19 | 20 | ## Other 21 | *.xccheckout 22 | *.moved-aside 23 | *.xcuserstate 24 | *.xcscmblueprint 25 | 26 | ## Obj-C/Swift specific 27 | *.hmap 28 | *.ipa 29 | 30 | # CocoaPods 31 | # 32 | # We recommend against adding the Pods directory to your .gitignore. However 33 | # you should judge for yourself, the pros and cons are mentioned at: 34 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 35 | # 36 | # Pods/ 37 | 38 | # Carthage 39 | # 40 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 41 | # Carthage/Checkouts 42 | 43 | Carthage/Build 44 | 45 | # fastlane 46 | # 47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 48 | # screenshots whenever they are needed. 49 | # For more information about the recommended setup visit: 50 | # https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md 51 | 52 | fastlane/report.xml 53 | fastlane/screenshots 54 | -------------------------------------------------------------------------------- /GHApplePay/GHApplePay/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /GHApplePay/GHApplePay/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /GHApplePay/GHApplePay/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /GHApplePay/GHApplePay/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /GHApplePay/GHApplePay/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // GHApplePay 4 | // 5 | // Created by shen_gh on 16/3/1. 6 | // Copyright © 2016年 com.joinup(Beijing). All rights reserved. 7 | // 8 | 9 | #import "ViewController.h" 10 | #import "GHApplePay.h"//导入AppelPay工具 11 | 12 | @interface ViewController () 13 | 14 | 15 | @property (nonatomic,strong) UIButton *payBtn;//支付按钮 16 | 17 | @end 18 | 19 | @implementation ViewController 20 | 21 | - (void)viewDidLoad { 22 | [super viewDidLoad]; 23 | // Do any additional setup after loading the view, typically from a nib. 24 | 25 | [self.view addSubview:self.payBtn]; 26 | } 27 | 28 | - (UIButton *)payBtn{ 29 | if (!_payBtn) { 30 | _payBtn=[UIButton buttonWithType:UIButtonTypeCustom]; 31 | [_payBtn setCenter:self.view.center]; 32 | [_payBtn setBounds:CGRectMake(0.0, 0.0, 60.0, 40.0)]; 33 | [_payBtn setBackgroundColor:[UIColor darkGrayColor]]; 34 | [_payBtn setTitle:@"支付" forState:UIControlStateNormal]; 35 | [_payBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; 36 | [_payBtn addTarget:self action:@selector(payBtnClicked) forControlEvents:UIControlEventTouchUpInside]; 37 | } 38 | return _payBtn; 39 | } 40 | 41 | - (void)payBtnClicked{ 42 | GHApplePay *pay=[[GHApplePay alloc]initWithPayReceiver:@"申冠华" amount:@"5.20" presentVC:self]; 43 | [pay setDelegate:self]; 44 | } 45 | 46 | #pragma mark - GHApplePay delegate 47 | //支付成功 48 | - (void)GHApplePayDidSuccess{ 49 | NSLog(@"支付成功!"); 50 | } 51 | 52 | //支付失败 53 | - (void)GHApplePayDidFailure{ 54 | NSLog(@"支付失败!"); 55 | } 56 | 57 | 58 | - (void)didReceiveMemoryWarning { 59 | [super didReceiveMemoryWarning]; 60 | // Dispose of any resources that can be recreated. 61 | } 62 | 63 | @end 64 | -------------------------------------------------------------------------------- /GHApplePay/GHApplePay/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // GHApplePay 4 | // 5 | // Created by shen_gh on 16/3/1. 6 | // Copyright © 2016年 com.joinup(Beijing). All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // 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. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /GHApplePay/GHApplePay/GHApplePay/GHApplePay.m: -------------------------------------------------------------------------------- 1 | // 2 | // GHApplePay.m 3 | // GHApplePay 4 | // 5 | // Created by shen_gh on 16/3/1. 6 | // Copyright © 2016年 com.joinup(Beijing). All rights reserved. 7 | // 8 | 9 | #import "GHApplePay.h" 10 | 11 | @implementation GHApplePay 12 | 13 | - (instancetype)initWithPayReceiver:(NSString *)payReceiver amount:(NSString *)amount presentVC:(UIViewController *)vc{ 14 | self=[super init]; 15 | if (self) { 16 | if([PKPaymentAuthorizationViewController canMakePayments]) { 17 | PKPaymentSummaryItem *widget = [PKPaymentSummaryItem summaryItemWithLabel:payReceiver amount:[NSDecimalNumber decimalNumberWithString:amount]]; 18 | 19 | PKPaymentRequest *request = [[PKPaymentRequest alloc] init]; 20 | request.countryCode = @"CH";//国别:中国 21 | request.currencyCode = @"CNY";//货币类型:人民币 22 | //支持哪种结算网关 23 | request.supportedNetworks = @[PKPaymentNetworkChinaUnionPay,PKPaymentNetworkAmex,PKPaymentNetworkMasterCard,PKPaymentNetworkVisa]; 24 | 25 | request.merchantCapabilities = PKMerchantCapability3DS | PKMerchantCapabilityEMV | PKMerchantCapabilityCredit | PKMerchantCapabilityDebit; 26 | request.merchantIdentifier = @"merchant.com.sghApplePay"; 27 | request.paymentSummaryItems = @[widget];//商品 28 | //账单地址 29 | request.requiredBillingAddressFields = PKAddressFieldAll; 30 | 31 | PKPaymentAuthorizationViewController *payMentVc = [[PKPaymentAuthorizationViewController alloc] initWithPaymentRequest:request]; 32 | payMentVc.delegate = self; 33 | if (!vc) { 34 | NSLog(@"出问题了,vc deallocated"); 35 | }else{ 36 | [vc presentViewController:payMentVc animated:YES completion:nil]; 37 | } 38 | }else{ 39 | NSLog(@"不支持ApplePay"); 40 | } 41 | } 42 | return self; 43 | } 44 | 45 | #pragma mark - PKPaymentAuthorizationViewControllerDelegate 46 | - (void)paymentAuthorizationViewController:(PKPaymentAuthorizationViewController *)controller didAuthorizePayment:(PKPayment *)payment completion:(void (^)(PKPaymentAuthorizationStatus status))completion{ 47 | BOOL asyncSuccessful = NO; 48 | 49 | if(asyncSuccessful) { 50 | completion(PKPaymentAuthorizationStatusSuccess); 51 | NSLog(@"Payment was successful"); 52 | if (_delegate&&[_delegate respondsToSelector:@selector(GHApplePayDidSuccess)]) { 53 | [_delegate GHApplePayDidSuccess]; 54 | } 55 | } else { 56 | completion(PKPaymentAuthorizationStatusFailure); 57 | NSLog(@"Payment was unsuccessful"); 58 | if (_delegate&&[_delegate respondsToSelector:@selector(GHApplePayDidFailure)]) { 59 | [_delegate GHApplePayDidFailure]; 60 | } 61 | } 62 | } 63 | 64 | - (void)paymentAuthorizationViewControllerDidFinish:(PKPaymentAuthorizationViewController *)controller{ 65 | [controller dismissViewControllerAnimated:YES completion:nil]; 66 | } 67 | 68 | @end 69 | -------------------------------------------------------------------------------- /GHApplePay/GHApplePay.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | C12D35191C8558A000AB86CF /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = C12D35181C8558A000AB86CF /* main.m */; }; 11 | C12D351C1C8558A000AB86CF /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = C12D351B1C8558A000AB86CF /* AppDelegate.m */; }; 12 | C12D351F1C8558A000AB86CF /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C12D351E1C8558A000AB86CF /* ViewController.m */; }; 13 | C12D35221C8558A000AB86CF /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C12D35201C8558A000AB86CF /* Main.storyboard */; }; 14 | C12D35241C8558A000AB86CF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C12D35231C8558A000AB86CF /* Assets.xcassets */; }; 15 | C12D35271C8558A000AB86CF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C12D35251C8558A000AB86CF /* LaunchScreen.storyboard */; }; 16 | C12D35311C85594400AB86CF /* GHApplePay.m in Sources */ = {isa = PBXBuildFile; fileRef = C12D35301C85594400AB86CF /* GHApplePay.m */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXFileReference section */ 20 | C12D35141C8558A000AB86CF /* GHApplePay.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GHApplePay.app; sourceTree = BUILT_PRODUCTS_DIR; }; 21 | C12D35181C8558A000AB86CF /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 22 | C12D351A1C8558A000AB86CF /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 23 | C12D351B1C8558A000AB86CF /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 24 | C12D351D1C8558A000AB86CF /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; 25 | C12D351E1C8558A000AB86CF /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 26 | C12D35211C8558A000AB86CF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 27 | C12D35231C8558A000AB86CF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 28 | C12D35261C8558A000AB86CF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 29 | C12D35281C8558A000AB86CF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 30 | C12D352F1C85594400AB86CF /* GHApplePay.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GHApplePay.h; sourceTree = ""; }; 31 | C12D35301C85594400AB86CF /* GHApplePay.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GHApplePay.m; sourceTree = ""; }; 32 | /* End PBXFileReference section */ 33 | 34 | /* Begin PBXFrameworksBuildPhase section */ 35 | C12D35111C8558A000AB86CF /* Frameworks */ = { 36 | isa = PBXFrameworksBuildPhase; 37 | buildActionMask = 2147483647; 38 | files = ( 39 | ); 40 | runOnlyForDeploymentPostprocessing = 0; 41 | }; 42 | /* End PBXFrameworksBuildPhase section */ 43 | 44 | /* Begin PBXGroup section */ 45 | C12D350B1C8558A000AB86CF = { 46 | isa = PBXGroup; 47 | children = ( 48 | C12D35161C8558A000AB86CF /* GHApplePay */, 49 | C12D35151C8558A000AB86CF /* Products */, 50 | ); 51 | sourceTree = ""; 52 | }; 53 | C12D35151C8558A000AB86CF /* Products */ = { 54 | isa = PBXGroup; 55 | children = ( 56 | C12D35141C8558A000AB86CF /* GHApplePay.app */, 57 | ); 58 | name = Products; 59 | sourceTree = ""; 60 | }; 61 | C12D35161C8558A000AB86CF /* GHApplePay */ = { 62 | isa = PBXGroup; 63 | children = ( 64 | C12D352E1C85593000AB86CF /* GHApplePay */, 65 | C12D351A1C8558A000AB86CF /* AppDelegate.h */, 66 | C12D351B1C8558A000AB86CF /* AppDelegate.m */, 67 | C12D351D1C8558A000AB86CF /* ViewController.h */, 68 | C12D351E1C8558A000AB86CF /* ViewController.m */, 69 | C12D35201C8558A000AB86CF /* Main.storyboard */, 70 | C12D35231C8558A000AB86CF /* Assets.xcassets */, 71 | C12D35251C8558A000AB86CF /* LaunchScreen.storyboard */, 72 | C12D35281C8558A000AB86CF /* Info.plist */, 73 | C12D35171C8558A000AB86CF /* Supporting Files */, 74 | ); 75 | path = GHApplePay; 76 | sourceTree = ""; 77 | }; 78 | C12D35171C8558A000AB86CF /* Supporting Files */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | C12D35181C8558A000AB86CF /* main.m */, 82 | ); 83 | name = "Supporting Files"; 84 | sourceTree = ""; 85 | }; 86 | C12D352E1C85593000AB86CF /* GHApplePay */ = { 87 | isa = PBXGroup; 88 | children = ( 89 | C12D352F1C85594400AB86CF /* GHApplePay.h */, 90 | C12D35301C85594400AB86CF /* GHApplePay.m */, 91 | ); 92 | path = GHApplePay; 93 | sourceTree = ""; 94 | }; 95 | /* End PBXGroup section */ 96 | 97 | /* Begin PBXNativeTarget section */ 98 | C12D35131C8558A000AB86CF /* GHApplePay */ = { 99 | isa = PBXNativeTarget; 100 | buildConfigurationList = C12D352B1C8558A000AB86CF /* Build configuration list for PBXNativeTarget "GHApplePay" */; 101 | buildPhases = ( 102 | C12D35101C8558A000AB86CF /* Sources */, 103 | C12D35111C8558A000AB86CF /* Frameworks */, 104 | C12D35121C8558A000AB86CF /* Resources */, 105 | ); 106 | buildRules = ( 107 | ); 108 | dependencies = ( 109 | ); 110 | name = GHApplePay; 111 | productName = GHApplePay; 112 | productReference = C12D35141C8558A000AB86CF /* GHApplePay.app */; 113 | productType = "com.apple.product-type.application"; 114 | }; 115 | /* End PBXNativeTarget section */ 116 | 117 | /* Begin PBXProject section */ 118 | C12D350C1C8558A000AB86CF /* Project object */ = { 119 | isa = PBXProject; 120 | attributes = { 121 | LastUpgradeCheck = 0720; 122 | ORGANIZATIONNAME = "com.joinup(Beijing)"; 123 | TargetAttributes = { 124 | C12D35131C8558A000AB86CF = { 125 | CreatedOnToolsVersion = 7.2.1; 126 | DevelopmentTeam = 6N644PXBBE; 127 | }; 128 | }; 129 | }; 130 | buildConfigurationList = C12D350F1C8558A000AB86CF /* Build configuration list for PBXProject "GHApplePay" */; 131 | compatibilityVersion = "Xcode 3.2"; 132 | developmentRegion = English; 133 | hasScannedForEncodings = 0; 134 | knownRegions = ( 135 | en, 136 | Base, 137 | ); 138 | mainGroup = C12D350B1C8558A000AB86CF; 139 | productRefGroup = C12D35151C8558A000AB86CF /* Products */; 140 | projectDirPath = ""; 141 | projectRoot = ""; 142 | targets = ( 143 | C12D35131C8558A000AB86CF /* GHApplePay */, 144 | ); 145 | }; 146 | /* End PBXProject section */ 147 | 148 | /* Begin PBXResourcesBuildPhase section */ 149 | C12D35121C8558A000AB86CF /* Resources */ = { 150 | isa = PBXResourcesBuildPhase; 151 | buildActionMask = 2147483647; 152 | files = ( 153 | C12D35271C8558A000AB86CF /* LaunchScreen.storyboard in Resources */, 154 | C12D35241C8558A000AB86CF /* Assets.xcassets in Resources */, 155 | C12D35221C8558A000AB86CF /* Main.storyboard in Resources */, 156 | ); 157 | runOnlyForDeploymentPostprocessing = 0; 158 | }; 159 | /* End PBXResourcesBuildPhase section */ 160 | 161 | /* Begin PBXSourcesBuildPhase section */ 162 | C12D35101C8558A000AB86CF /* Sources */ = { 163 | isa = PBXSourcesBuildPhase; 164 | buildActionMask = 2147483647; 165 | files = ( 166 | C12D351F1C8558A000AB86CF /* ViewController.m in Sources */, 167 | C12D351C1C8558A000AB86CF /* AppDelegate.m in Sources */, 168 | C12D35311C85594400AB86CF /* GHApplePay.m in Sources */, 169 | C12D35191C8558A000AB86CF /* main.m in Sources */, 170 | ); 171 | runOnlyForDeploymentPostprocessing = 0; 172 | }; 173 | /* End PBXSourcesBuildPhase section */ 174 | 175 | /* Begin PBXVariantGroup section */ 176 | C12D35201C8558A000AB86CF /* Main.storyboard */ = { 177 | isa = PBXVariantGroup; 178 | children = ( 179 | C12D35211C8558A000AB86CF /* Base */, 180 | ); 181 | name = Main.storyboard; 182 | sourceTree = ""; 183 | }; 184 | C12D35251C8558A000AB86CF /* LaunchScreen.storyboard */ = { 185 | isa = PBXVariantGroup; 186 | children = ( 187 | C12D35261C8558A000AB86CF /* Base */, 188 | ); 189 | name = LaunchScreen.storyboard; 190 | sourceTree = ""; 191 | }; 192 | /* End PBXVariantGroup section */ 193 | 194 | /* Begin XCBuildConfiguration section */ 195 | C12D35291C8558A000AB86CF /* Debug */ = { 196 | isa = XCBuildConfiguration; 197 | buildSettings = { 198 | ALWAYS_SEARCH_USER_PATHS = NO; 199 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 200 | CLANG_CXX_LIBRARY = "libc++"; 201 | CLANG_ENABLE_MODULES = YES; 202 | CLANG_ENABLE_OBJC_ARC = YES; 203 | CLANG_WARN_BOOL_CONVERSION = YES; 204 | CLANG_WARN_CONSTANT_CONVERSION = YES; 205 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 206 | CLANG_WARN_EMPTY_BODY = YES; 207 | CLANG_WARN_ENUM_CONVERSION = YES; 208 | CLANG_WARN_INT_CONVERSION = YES; 209 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 210 | CLANG_WARN_UNREACHABLE_CODE = YES; 211 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 212 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 213 | COPY_PHASE_STRIP = NO; 214 | DEBUG_INFORMATION_FORMAT = dwarf; 215 | ENABLE_STRICT_OBJC_MSGSEND = YES; 216 | ENABLE_TESTABILITY = YES; 217 | GCC_C_LANGUAGE_STANDARD = gnu99; 218 | GCC_DYNAMIC_NO_PIC = NO; 219 | GCC_NO_COMMON_BLOCKS = YES; 220 | GCC_OPTIMIZATION_LEVEL = 0; 221 | GCC_PREPROCESSOR_DEFINITIONS = ( 222 | "DEBUG=1", 223 | "$(inherited)", 224 | ); 225 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 226 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 227 | GCC_WARN_UNDECLARED_SELECTOR = YES; 228 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 229 | GCC_WARN_UNUSED_FUNCTION = YES; 230 | GCC_WARN_UNUSED_VARIABLE = YES; 231 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 232 | MTL_ENABLE_DEBUG_INFO = YES; 233 | ONLY_ACTIVE_ARCH = YES; 234 | SDKROOT = iphoneos; 235 | TARGETED_DEVICE_FAMILY = "1,2"; 236 | }; 237 | name = Debug; 238 | }; 239 | C12D352A1C8558A000AB86CF /* Release */ = { 240 | isa = XCBuildConfiguration; 241 | buildSettings = { 242 | ALWAYS_SEARCH_USER_PATHS = NO; 243 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 244 | CLANG_CXX_LIBRARY = "libc++"; 245 | CLANG_ENABLE_MODULES = YES; 246 | CLANG_ENABLE_OBJC_ARC = YES; 247 | CLANG_WARN_BOOL_CONVERSION = YES; 248 | CLANG_WARN_CONSTANT_CONVERSION = YES; 249 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 250 | CLANG_WARN_EMPTY_BODY = YES; 251 | CLANG_WARN_ENUM_CONVERSION = YES; 252 | CLANG_WARN_INT_CONVERSION = YES; 253 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 254 | CLANG_WARN_UNREACHABLE_CODE = YES; 255 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 256 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 257 | COPY_PHASE_STRIP = NO; 258 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 259 | ENABLE_NS_ASSERTIONS = NO; 260 | ENABLE_STRICT_OBJC_MSGSEND = YES; 261 | GCC_C_LANGUAGE_STANDARD = gnu99; 262 | GCC_NO_COMMON_BLOCKS = YES; 263 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 264 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 265 | GCC_WARN_UNDECLARED_SELECTOR = YES; 266 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 267 | GCC_WARN_UNUSED_FUNCTION = YES; 268 | GCC_WARN_UNUSED_VARIABLE = YES; 269 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 270 | MTL_ENABLE_DEBUG_INFO = NO; 271 | SDKROOT = iphoneos; 272 | TARGETED_DEVICE_FAMILY = "1,2"; 273 | VALIDATE_PRODUCT = YES; 274 | }; 275 | name = Release; 276 | }; 277 | C12D352C1C8558A000AB86CF /* Debug */ = { 278 | isa = XCBuildConfiguration; 279 | buildSettings = { 280 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 281 | CODE_SIGN_IDENTITY = "iPhone Developer"; 282 | INFOPLIST_FILE = GHApplePay/Info.plist; 283 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 284 | PRODUCT_BUNDLE_IDENTIFIER = com.sgh.ApplePay; 285 | PRODUCT_NAME = "$(TARGET_NAME)"; 286 | }; 287 | name = Debug; 288 | }; 289 | C12D352D1C8558A000AB86CF /* Release */ = { 290 | isa = XCBuildConfiguration; 291 | buildSettings = { 292 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 293 | CODE_SIGN_IDENTITY = "iPhone Developer"; 294 | INFOPLIST_FILE = GHApplePay/Info.plist; 295 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 296 | PRODUCT_BUNDLE_IDENTIFIER = com.sgh.ApplePay; 297 | PRODUCT_NAME = "$(TARGET_NAME)"; 298 | }; 299 | name = Release; 300 | }; 301 | /* End XCBuildConfiguration section */ 302 | 303 | /* Begin XCConfigurationList section */ 304 | C12D350F1C8558A000AB86CF /* Build configuration list for PBXProject "GHApplePay" */ = { 305 | isa = XCConfigurationList; 306 | buildConfigurations = ( 307 | C12D35291C8558A000AB86CF /* Debug */, 308 | C12D352A1C8558A000AB86CF /* Release */, 309 | ); 310 | defaultConfigurationIsVisible = 0; 311 | defaultConfigurationName = Release; 312 | }; 313 | C12D352B1C8558A000AB86CF /* Build configuration list for PBXNativeTarget "GHApplePay" */ = { 314 | isa = XCConfigurationList; 315 | buildConfigurations = ( 316 | C12D352C1C8558A000AB86CF /* Debug */, 317 | C12D352D1C8558A000AB86CF /* Release */, 318 | ); 319 | defaultConfigurationIsVisible = 0; 320 | }; 321 | /* End XCConfigurationList section */ 322 | }; 323 | rootObject = C12D350C1C8558A000AB86CF /* Project object */; 324 | } 325 | --------------------------------------------------------------------------------