Skip to content

Commit

Permalink
updates track purchase signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Greer committed May 21, 2024
1 parent 41f5cd6 commit 8f608ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ private void storeEventListToLocalStorage(JSONObject newDataObject, boolean shou
editor.apply();

Integer criteriaId = checkCriteriaCompletion();

if (criteriaId != null) {
createKnownUser(criteriaId);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ public void updateCart(@NonNull List<CommerceItem> items, JSONObject userObject,
* @param items list of purchased items
*/
public void trackPurchase(double total, @NonNull List<CommerceItem> items) {
trackPurchase(total, items, null, null);
trackPurchase(total, items, null);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public void updateCart(@NonNull List<CommerceItem> items, JSONObject userObject,
}
}

public void trackPurchase(double total, @NonNull List<CommerceItem> items, @Nullable JSONObject dataFields) {
public void trackPurchase(double total, @NonNull List<CommerceItem> items, @Nullable JSONObject dataFields, @Nullable IterableAttributionInfo attributionInfo) {
JSONObject requestJSON = new JSONObject();
try {
JSONArray itemsArray = new JSONArray();
Expand Down

0 comments on commit 8f608ba

Please sign in to comment.