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.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-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 *;}
The text was updated successfully, but these errors were encountered:
首先,这不是一个 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 *;}
The text was updated successfully, but these errors were encountered: