0

Hey guys,

is there a way for me to hook up a broadcast receiver in my android app and receive an event when the merchant refunds a purchase?

I have done this:

    <receiver android:name="org.getti.clover.ui.receivers.OrderRefundReceiver">
        <intent-filter>
            <action android:name="clover.intent.action.MANUAL_REFUND" />
        </intent-filter>
    </receiver>

but I don't receive anything.

Thanks!

asked 2016-04-23 08:24:43 -0500

Georgi gravatar image

updated 2016-06-22 03:51:21 -0500

1 answer

Sort by  
2

You should be able to listen for a broadcast of com.clover.intent.action.REFUND_PROCESSED (for a refund of an existing payment) or com.clover.intent.action.CREDIT_PROCESSED (for a manual refund, aka naked refund or "credit") with extras of com.clover.intent.extra.ORDER_ID, com.clover.intent.extra.CREDIT_ID or com.clover.intent.extra.PAYMENT_ID and com.clover.intent.extra.AMOUNT. These broadcasts will be fully documented in clover-android-sdk in a future release.

Note that clover.intent.action.MANUAL_REFUND is the intent used to launch a manual refund (refund to a credit card that is not tied to any existing payment.

answered 2016-04-24 20:53:34 -0500

Duane Moore gravatar image

updated 2016-04-24 20:54:48 -0500

Comments

Hey Duane is there a similar broadcast for exchanges?

tg gravatar image
tg 2016-05-04 10:51:31 -0500

Thanks a lot! It is working!

Georgi gravatar image
Georgi 2016-06-22 03:16:22 -0500