Skip to content

Commit f2f62e1

Browse files
feat: Add Android mapping for Commerce Events (currency, checkoutStep, checkoutOptions) (#63)
1 parent 2ad9ad2 commit f2f62e1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

android/src/main/java/com/mparticle/react/MParticleModule.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,16 @@ else if (isPromotion) {
598598
if (map.hasKey("customAttributes")) {
599599
builder.customAttributes(ConvertStringMap(map.getMap("customAttributes")));
600600
}
601+
if (map.hasKey("currency")) {
602+
builder.currency(map.getString("currency"));
603+
}
604+
if (map.hasKey("checkoutStep")) {
605+
builder.checkoutStep(map.getInt("checkoutStep"));
606+
}
607+
if (map.hasKey("checkoutOptions")) {
608+
builder.checkoutOptions(map.getString("checkoutOptions"));
609+
}
610+
601611

602612
return builder.build();
603613
}

0 commit comments

Comments
 (0)