question

nirmal avatar image
nirmal Suspended asked Sukhbir Singh commented

No Activity found to handle Intent { act=clover.intent.action.REFUND (has extras) } while refunding

While launching refund intent i am getting following error :-

No Activity found to handle Intent { act=clover.intent.action.REFUND (has extras) }

I am using clover 152.9 sdk version . Kindly reply to this weird situation.

Refund
10 |2000

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

Mark Mullan avatar image
Mark Mullan Deactivated answered

Hi @Nirmal,

It sounds like you're using an Android emulator as your Clover device for development. The first paragraph in our Emulator Setup is particularly relevant: https://docs.clover.com/build/android-emulator-setup/

Refund, among other apps related to payments, access hardware specific functionality that are only available on DevKits and production-level Clover devices.

Hope this helps-

Mark

10 |2000

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

Jeffrey Blattman avatar image
Jeffrey Blattman answered Sukhbir Singh commented

Looking at the description for ACTION_REFUND,

Intent passed to start your app's extensible tender refund activity

You don't use this intent to perform a refund. Refunds are a restricted operation considering the multitude of ways it could be used to commit fraud. The purpose of this intent is to allow custom tenders to accept a refund.

What you can do is use ACTION_START_TRANSACTION_DETAIL to show the user the transaction details, and ask them to perform a refund manually.

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.

Sukhbir Singh avatar image Sukhbir Singh commented ·

But in case of ACTION_START_TRANSACTION_DETAIL we got Refund button always disabled on Transaction Details screen.

0 Likes 0 ·

Welcome to the
Clover Developer Community