如果Appdelegate文件中不實現(xiàn)
[[AlipaySDK defaultService] processOrderWithPaymentResult:url standbyCallback:^(NSDictionary *resultDic) {
NSLog(@"????result = %@",resultDic);
}];
那么支付回調(diào)將不會執(zhí)行
考慮到設(shè)備的iOS版本問題必須要在Appdelegate文件兩個方法出現(xiàn)該代碼
1.- (BOOL)application:(UIApplication *)application ?openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication ?annotation:(id)annotation {
return YES;
}
2.- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary*)options{
return YES;
}