question

munkhuushmgl avatar image
munkhuushmgl asked Ashutosh Bajpay Suspended commented

Refund throw NullPointerException when web based payment

Further details,
after web payment, it doesn't show the receipt and refund transaction on Orders.

I get the following error when I submit the refund:

ava.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=2222, result=-1, data=Intent { (has extras) }} to activity {com.clover.transactions/com.clover.transactions.TransactionDetailActivity}: java.lang.NullPointerException
at android.app.ActivityThread.deliverResults( ActivityThread.java:3320)
at android.app.ActivityThread.handleSendResult( ActivityThread.java:3363)
at android.app.ActivityThread.access$1100( ActivityThread.java:142)
at android.app.ActivityThread$H.handleMessage( ActivityThread.java:1283)
at android.os.Handler.dispatchMessage( Handler.java:99)
at android.os.Looper.loop( Looper.java:137)
at android.app.ActivityThread.main( ActivityThread.java:5051)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke( Method.java:511)
at com.android.internal.os.ZygoteInit$ MethodAndArgsCaller.run( ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main( ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at com.clover.common2.RefundUtils.taxesToRefund( RefundUtils.java:97)
at com.clover.common2.RefundUtils.calculateRefund( RefundUtils.java:52)
at com.clover.transactions.TransactionDetailActivity.constructAndIssueRefund( TransactionDetailActivity.java:2252)
at com.clover.transactions.TransactionDetailActivity.onActivityResult( TransactionDetailActivity.java:522)
at android.app.Activity.dispatchActivityResult( Activity.java:5303)
at android.app.ActivityThread.deliverResults( ActivityThread.java:3316)
at android.app.ActivityThread.handleSendResult( ActivityThread.java:3363)
at android.app.ActivityThread.access$1100( ActivityThread.java:142)
at android.app.ActivityThread$H.handleMessage( ActivityThread.java:1283)
at android.os.Handler.dispatchMessage( Handler.java:99)
at android.os.Looper.loop( Looper.java:137)
at android.app.ActivityThread.main( ActivityThread.java:5051)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke( Method.java:511)
at com.android.internal.os.ZygoteInit$ MethodAndArgsCaller.run( ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main( ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)


SandboxRefund
1 comment
10 |2000

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

Ashutosh Bajpay avatar image Ashutosh Bajpay commented ·

Hi @munkhuushmgl, I am also getting the same issue. Did you found a solution to this issue?

0 Likes 0 ·

1 Answer

chanel avatar image
chanel Deactivated answered
Refunding cards is not available for third party developers. If you would like to issue some sort of store credit, building a Custom Tender will be the proper Clover implementation. There are some additional forum posts related to custom tender refunds here and here.
10 |2000

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

Welcome to the
Clover Developer Community