question

axialpay avatar image
axialpay asked Bryanne Vega commented

Error after swiping card on Payment Connector in clover station 2018

Payment app crashes after i swipe card on clover station 2018 but for all other devices it works fine.
I am navigating to payment app from my app using PaymentConnector
any idea what could be the problem?

PaymentConnector
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Bryanne Vega avatar image
Bryanne Vega answered Bryanne Vega commented
Integrate a crash/log utility on your application. Specially for production.

Mint Splunk is the one I prefer but there are plenty others.

Without crash logs, it will be hard to determine the cause.
2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

axialpay avatar image axialpay commented ·

This is the error/log i am getting

2019-04-30 11:18:14.740 4678-4678/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.clover.payment.executor.station.secure, PID: 4678 java.lang.NullPointerException: Attempt to invoke virtual method 'com.clover.sdk.v3.base.Tender com.clover.sdk.v3.payments.Payment.getTender()' on a null object reference at com.clover.payment.common.activities.AbstractPaymentActivity$13.onSafePostExecute(AbstractPaymentActivity.java:1357) at com.clover.payment.common.activities.AbstractPaymentActivity$13.onSafePostExecute(AbstractPaymentActivity.java:1344) at com.clover.common2.orders.OrderConnectorAsyncTask.onSafePostExecute(OrderConnectorAsyncTask.java:53) at com.clover.common2.orders.OrderConnectorAsyncTask.onSafePostExecute(OrderConnectorAsyncTask.java:12) at com.clover.common2.ConnectorSafeAsyncTask.onPostExecute(ConnectorSafeAsyncTask.java:65) at android.os.AsyncTask.finish(AsyncTask.java:667) at android.os.AsyncTask.-wrap1(AsyncTask.java) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:684) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6121) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)

0 Likes 0 ·
Bryanne Vega avatar image Bryanne Vega axialpay commented ·

Payment activity is trying to get a Tender for that payment but there are none.

Try making an API call through here and see if there's a Tender attached (don't forget to select Expand - > Tenders

0 Likes 0 ·

Welcome to the
Clover Developer Community