其他分享
首页 > 其他分享> > 没有card.io的Android PayPal集成?

没有card.io的Android PayPal集成?

作者:互联网

我使用PayPal Android SDK在我的应用程序中集成PayPal付款,它工作正常.我想知道,我可以禁用“card.io”支持(用户扫描信用卡的地方)吗?结果删除4MB的.so“card.io”libs文件?我在官方PayPal网站和Google上都找不到任何相关信息.

解决方法:

正如Jeff Brateman评论的那样,这个问题有一个newly added section

Disabling card.io card scanning

Future payments does not require card.io card scanning, so it is safe to remove the camera scanner libraries by removing the following folders within the lib directory: armeabi, armeabi-v7a, mips, and x86.

Single Payments can be configured to accept credit cards through manual entry, but without card scanning. To do so, remove the same libs above, and remove android.permission.CAMERA and android.permission.VIBRATE permissions from AndroidManifest.xml. If you wish to disable credit card support altogether, follow the above steps to reduce the permissions and sdk footprint, and add the following to the PayPalConfiguration initialization:

config.acceptCreditCards(false);

标签:android,paypal,card-io
来源: https://codeday.me/bug/20190831/1774950.html