Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当手机未安装支付宝的时候不能唤起 H5 支付界面 #6

Open
daiwhea opened this issue Jul 14, 2017 · 0 comments
Open

当手机未安装支付宝的时候不能唤起 H5 支付界面 #6

daiwhea opened this issue Jul 14, 2017 · 0 comments

Comments

@daiwhea
Copy link

daiwhea commented Jul 14, 2017

首先,这不是一个 bug,只是作者的 readme 中未能完整的写出来。如果需要支持未安装 支付宝 app 的手机支付,需要在 AndroidManifest.xml 文件里面同时添加声明:否则 H5支付界面不会弹出,也没有报错。

<activity android:name="com.alipay.sdk.app.H5PayActivity" android:configChanges="orientation|keyboardHidden|navigation|screenSize" android:exported="false" android:screenOrientation="behind" android:windowSoftInputMode="adjustResize|stateHidden" > </activity> <activity android:name="com.alipay.sdk.app.H5AuthActivity" android:configChanges="orientation|keyboardHidden|navigation" android:exported="false" android:screenOrientation="behind" android:windowSoftInputMode="adjustResize|stateHidden" > </activity>

详细接入 android 可以参见文档

https://doc.open.alipay.com/docs/doc.htm?spm=a219a.7386797.0.0.ecSLGV&source=search&treeId=193&articleId=105296&docType=1#s2

多谢作者!

另外有个问题请教;支付宝官方文档里面有添加混淆的配置,react-native 的项目,这个配置应该放到哪里呢?是你这个 module 里面?还是 项目 里面?

-libraryjars libs/alipaySDK-20150602.jar

-keep class com.alipay.android.app.IAlixPay{;}
-keep class com.alipay.android.app.IAlixPay$Stub{
;}
-keep class com.alipay.android.app.IRemoteServiceCallback{;}
-keep class com.alipay.android.app.IRemoteServiceCallback$Stub{
;}
-keep class com.alipay.sdk.app.PayTask{ public *;}
-keep class com.alipay.sdk.app.AuthTask{ public *;}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant