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