iOS第三方支付-微信支付
微信支付用到的文件 1.首先支持非arc 2.设置URL types 3.AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [WXApi registerApp: @" wxd930ea5d5a258f4f " withDescription: @" demo 2.0 " ]; return YES; } 4.微信回调 // 处理微信通过URL启动App时传递的数据 - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:( id )annotation { return [WXApi handleOpenURL:url delegate :self]; } // 微信回调 - ( void )onResp:(BaseResp *)resp { // errCode switch (resp.errCode) { case WXSuccess: // 成功回调 break ; default