question

dipen avatar image
dipen asked Dan edited

Is there any broadcast to get notified on order item exchange?.

Is there any way to get notified on order item exchange.

Broadcasts
3 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.

steve-egan avatar image steve-egan commented ·

You can implement the OrderConnector.OnOrderUpdateListener2 interface and override the onLineItemExchanged() method.

0 Likes 0 ·
dipen avatar image dipen commented ·

onLineItemExchanged() is not gating called, other methods of OnOrderUpdateListener2 are working but not onLineItemExchanged()

0 Likes 0 ·
kelvin avatar image kelvin commented ·

listen to "com.clover.intent.action.EXCHANGEDPROCESSED" then look for: final String orderId = intent.getStringExtra("com.clover.intent.extra.ORDERID"); final String oldLineItemId = intent.getStringExtra("com.clover.intent.extra.OLDLINEITEMID"); final String newLineItemId = intent.getStringExtra("com.clover.intent.extra.NEWLINEITEMID");

0 Likes 0 ·
kelvin avatar image
kelvin answered Dan edited

Listen to "com.clover.intent.action.EXCHANGED_PROCESSED" then look for:

            final String orderId = intent.getStringExtra("com.clover.intent.extra.ORDER_ID");
            final String oldLineItemId = intent.getStringExtra("com.clover.intent.extra.OLD_LINE_ITEM_ID");
            final String newLineItemId = intent.getStringExtra("com.clover.intent.extra.NEW_LINE_ITEM_ID");
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.

Jai avatar image Jai commented ·

please accept this answer

0 Likes 0 ·
Jai avatar image
Jai answered

I am also facing the same issue for exchange is there any broadcast that will tell me there is request for exchange of clover line item

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