Skip to content
Permalink
Browse files

Change Purchase and AddToCard values

  • Loading branch information...
Husseinhj committed Jul 8, 2019
1 parent a209813 commit ce44e111961ac909315158344970b5f3fc7bb885
Showing with 3 additions and 7 deletions.
  1. +3 −7 app/src/main/java/com/adpdigital/chabok/starter/activity/MainActivity.java
@@ -441,15 +441,11 @@ public void onFailure(Throwable throwable) {
public void onClick(View v) {
JSONObject data = new JSONObject();
try {
data.put("capId",123456);
data.put("value","PRODUCT_123");
} catch (JSONException e) {
e.printStackTrace();
}

ChabokEvent event = new ChabokEvent(50000, "RIAL");
event.setData(data);

AdpPushClient.get().trackPurchase("AddToCard", event);
AdpPushClient.get().track("AddToCard", data);
}
};
}
@@ -465,7 +461,7 @@ public void onClick(View v) {
e.printStackTrace();
}

AdpPushClient.get().trackPurchase("Purchase", new ChabokEvent(20000, "RIAL"));
AdpPushClient.get().trackPurchase("Purchase", new ChabokEvent(10000, "RIAL"));
}
};
}

0 comments on commit ce44e11

Please sign in to comment.
You can’t perform that action at this time.