IOS Alipay or micro-credit payment will be invoked in Appdelegate when payment is successful
-(BOOL) Application: (UIApplication *) application Handleopenurl: (nsurl *) URL;
-(BOOL) Application: (UIApplication *) application OpenURL: (nsurl *) URL sourceapplication: (NSString *) sourceapplication annotation: (id) annotation;
These two methods of callback operation, but the previous period is good, these two days can not be used, after a search to know
-(BOOL) Application: (UIApplication *) application OpenURL: (nsurl *) URL sourceapplication: (NSString *) sourceapplication annotation: (id) annotation;
This method has expired in iOS9, and it is OK to put the callback in the new proxy method.
Methods in iOS9:
-(BOOL) Application: (UIApplication *) app OpenURL: (nsurl *) URL options: (nsdictionary<nsstring *,id> *) options {
if ([Url.host isequaltostring:@ "Safepay"]) {
[[Alipaysdk Defaultservice] Processorderwithpaymentresult:url standbycallback:^ (nsdictionary *resultDic) {
NSLog (@ "result =%@", resultdic);
}];
return YES;
}else{
return [Wxapi Handleopenurl:url Delegate:[wxapimanager Sharedmanager]];
}
}