question

ramya avatar image
ramya asked ·

Not able to listen events from OrderV3Connector.OnOrderUpdateListener2

Whenever lineItem added,deleted and updated in Register app, we want to trigger an event
Seen this post https://community.clover.com/questions/14833/is-t... tried code in clover mini sandbox but unable to receive events
We are using below code

Created OrderV3Connector.OnOrderUpdateListener2 as Service
public class LineItemService extends Service implements OrderV3Connector.OnOrderUpdateListener2 {
@Nullable
@Override
public IBinder onBind(Intent intent) { return null; }
@Override
public void onCreate() { super.onCreate(); }
@Override
public void onOrderUpdated(String orderId, boolean selfChange) { }
@Override
public void onOrderCreated(String orderId) { }
@Override
public void onOrderDeleted(String orderId) { }
@Override
public void onOrderDiscountAdded(String orderId, String discountId) { }
@Override
public void onOrderDiscountsDeleted(String orderId, List<String> discountIds) { }
@Override
public void onLineItemsAdded(String orderId, List<String> lineItemIds) { }
@Override
public void onLineItemsUpdated(String orderId, List<String> lineItemIds) { }
@Override
public void onLineItemsDeleted(String orderId, List<String> lineItemIds) { }
@Override
public void onLineItemModificationsAdded(String orderId, List<String> lineItemIds, List<String> modificationIds) { }
@Override
public void onLineItemDiscountsAdded(String orderId, List<String> lineItemIds, List<String> discountIds) { }
@Override
public void onLineItemExchanged(String orderId, String oldLineItemId, String newLineItemId) { } @Override
public void onPaymentProcessed(String orderId, String paymentId) { }
@Override
public void onRefundProcessed(String orderId, String refundId) { }
@Override
public void onCreditProcessed(String orderId, String creditId) { }
@Override
public void onDestroy() { super.onDestroy(); }}

Started service
Intent intent= new Intent(getApplicationContext(), LineItemService.class);
startService(intent);

//Manifest
<service android:name=".activities.LineItemService"/>

clover android sdk gradle
implementation 'com.clover.sdk:clover-android-sdk:221.9'

Please suggest
OrdersClover Android SDKSandboxLineItemsBroadcasts
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.

1 Answer

· Write an Answer
raman22500 avatar image
raman22500 answered ·

Have you found any solution?

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.

Raman22500 this is the 3rd related post you have commented on or created. This is not necessary, please stop.

0 Likes 0 · ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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