解决微信h5支付,支付宝h5支付,银联h5支付


解决微信h5支付之后如何返回APP

https://github.com/mjl123iOS/iOS_WXh5

https://www.jianshu.com/p/0d8dd04fe94e

https://www.jianshu.com/p/90db7dfb075c


https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=8_5


支付宝H5手机网站支付转Native支付 
https://docs.open.alipay.com/203/106493/

/**
 *  从h5链接中获取订单串并支付接口(自版本15.4.0起,推荐使用该接口)
 *
 *  @param urlStr     拦截的 url string
 *
 *  @return YES为成功获取订单信息并发起支付流程;NO为无法获取订单信息,输入url是普通url
 */
- (BOOL)payInterceptorWithUrl:(NSString *)urlStr
                   fromScheme:(NSString *)schemeStr
                     callback:(CompletionBlock)completionBlock;
                     
 https://github.com/cczufish/AlipaySDK
 

IOS接入微信支付,微信调用不起来,解决办法
http://a3.work/a/oc/250.html

https://blog.csdn.net/weixin_34310369/article/details/87994061

银联h5支付错误信息拦截

func webViewDidFinishLoad(_ webView: UIWebView) {

let html = webView.stringByEvaluatingJavaScript(from: "document.documentElement.innerHTML")
        //  出错了
        if (html as! NSString).range(of: "responseCode=A00").location != NSNotFound && (html as! NSString).range(of: "responseMsg=E00").location != NSNotFound  {
            // 通知出错信息,走错误页面

            DispatchQueue.main.after(0.5) {
                
                self.payresult(result: .fail)
            }

        }
    }
    


Loading Disqus comments...
Table of Contents