forked from CoderZhuXH/XHPayKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6d01f1e
commit 3d42234
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## 1.简单方案: | ||
|
||
### XHPayKit已被列入机审检测名单,修改所有XHPayKit类名和方法名(类名和方法名中不要带pay字眼) | ||
|
||
|
||
## 2.终极方案: | ||
|
||
|
||
### 支付宝和微信支付去SDK化(不用官方SDK或者XHPaykit,同样可以掉起微信APP支付和支付宝APP支付)原理很简单: | ||
|
||
#### 1. 官方SDK和XHPaykit内部都是将支付参数转为-->支付url,通过openURL的方式传参给支付宝/微信,掉起支付宝/微信APP支付 | ||
#### 2. 完全可以将支付参数转化-->支付url,这个过程放在后台,至于后台怎么实现这个转化过程,你可以看下XHPaykit的源码,将转化原理告诉后台,由后台来实现转化过程. | ||
#### 3. 唯一的区别就是:从开始的APP传支付参数给SDK或者XHPaykit拉起支付 变为APP传支付参数给后台,后台返回支付url,我们openURL拉起支付宝/微信支付 | ||
#### 4. 此方法配合H5页面使用,可以做到项目中基本无任何支付宝微信支付的痕迹,这也是现在我采用的方案 | ||
|
||
|
||
## 3.有人说在info.plist白名单中增加alipay也会被拒绝,这个可以删掉的,你集成支付宝官方SDK,官方文档中没有说让你在info.plist白名单中增加alipay字段吧. |