question

Dipen avatar image
Dipen asked ·

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 characters needed characters left characters exceeded

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

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

0 Likes 0 · ·

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

0 Likes 0 · ·

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 ·

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 Share
10 |2000 characters needed characters left characters exceeded

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

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

Share
10 |2000 characters needed characters left characters exceeded

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