Skip to content
主要是为了解决微信h5支付之后如何返回APP所写的demo,针对于UIWebView和WKWebView
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
TestPayWeb.xcodeproj
TestPayWeb
TestPayWebTests
TestPayWebUITests
README.md

README.md

iOS_WXh5

主要是为了解决微信h5支付之后如何返回APP所写的demo,针对于UIWebView和WKWebView

首先你在Xcode中,选择你的工程设置项,选中“TARGETS”一栏,在“info”标签栏的“LSApplicationQueriesSchemes“添加weixin

然后设置Referer这个请求头的参数

然后设置Scheme

所以h5支付最终返回APP的解决方案是:把Referer设置成:www.xxx.com:// scheme设置成:www.xxx.com就可以直接返回APP了。

如果有多个APP运用到h5支付的话,返回的Scheme设置是一个问题,在这里我给大家提供一篇文章,是解决多个APP返回的问题 iOS实现微信外部H5支付完成后返回原APP(多APP也可实现)(http://www.cnblogs.com/Life-Record/p/8472319.html)

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.