我已经在我的Android应用程序中集成了Paypal Sdk。它有两个选项,使用Paypal用户帐户支付并使用信用卡支付。信用卡付款可以通过卡Io库完成,但不知道为什么它不工作。没有工作意味着它不是扫描卡。请告诉我如何使用它。我只是保持卡在很长一段时间,但它不从卡中获取详细信息。
SDK版本2.0.2
扫描卡时的Logcat
03-14 11:05:20.000: E/mm-camera(140): Ignoring execution of AEC as AF is active
03-14 11:05:20.060: E/mm-camera(140): Ignoring execution of AEC as AF is active
03-14 11:05:20.110: E/mm-camera(140): Ignoring execution of AEC as AF is active
03-14 11:05:20.110: W/QCameraHWI_Preview(132): android::status_t android::QCameraStream_preview::processPreviewFrameWithDisplay(mm_camera_ch_data_buf_t*): dis_proc_time 0ms, asd_proc_time 0ms, gpu_proc_time 0ms, face_proc_time 3ms, genlock_unlock_time 0ms, genlock_lock_time 0ms, enqueue_time 3ms, dequeue_time 0ms, ion_flush_time 2ms, lock_buffer_time 0ms, buf_done_time 8ms, data_callback_time 27ms, frame_proc_time 46ms
甚至无法通过填写卡片详细信息进行交易.App正在崩溃
填写卡片详细信息后Logcat:
03-14 11:09:23.370: E/AndroidRuntime(25350): java.lang.NullPointerException
03-14 11:09:23.370: E/AndroidRuntime(25350): at com.paypal.android.sdk.payments.PayPalService.h(Unknown Source)
03-14 11:09:23.370: E/AndroidRuntime(25350): at com.paypal.android.sdk.payments.PaymentMethodActivity.a(Unknown Source)
03-14 11:09:23.370: E/AndroidRuntime(25350): at com.paypal.android.sdk.payments.PaymentMethodActivity.f(Unknown Source)
03-14 11:09:23.370: E/AndroidRuntime(25350): at com.paypal.android.sdk.payments.aj.onServiceConnected(Unknown Source)
03-14 11:09:23.370: E/AndroidRuntime(25350): at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1187)
03-14 11:09:23.370: E/AndroidRuntime(25350): at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1204)
03-14 11:09:23.370: E/AndroidRuntime(25350): at android.os.Handler.handleCallback(Handler.java:615)
03-14 11:09:23.370: E/AndroidRuntime(25350): at android.os.Handler.dispatchMessage(Handler.java:92)
03-14 11:09:23.370: E/AndroidRuntime(25350): at android.os.Looper.loop(Looper.java:155)
03-14 11:09:23.370: E/AndroidRuntime(25350): at android.app.ActivityThread.main(ActivityThread.java:5520)
03-14 11:09:23.370: E/AndroidRuntime(25350): at java.lang.reflect.Method.invokeNative(Native Method)
03-14 11:09:23.370: E/AndroidRuntime(25350): at java.lang.reflect.Method.invoke(Method.java:511)
03-14 11:09:23.370: E/AndroidRuntime(25350): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)
03-14 11:09:23.370: E/AndroidRuntime(25350): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:796)
03-14 11:09:23.370: E/AndroidRuntime(25350): at dalvik.system.NativeStart.main(Native Method)
03-14 11:09:23.380: E/EmbeddedLogger(343): App crashed! Process: com.paypal.example.paypalandroidsdkexample
03-14 11:09:23.380: E/EmbeddedLogger(343): App crashed! Package: com.paypal.example.paypalandroidsdkexample v1 (1.0)
03-14 11:09:23.380: E/EmbeddedLogger(343): Application Label: PayPal SDK Example
03-14 11:09:26.480: E/ThermalDaemon(25739): Thermal daemon started