Last active
December 21, 2020 17:10
-
-
Save kmclaugh/f87864199e77b605ee114e2f3049ac7a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* logger is an instance of AppEventsLogger and has been | |
* created using AppEventsLogger.newLogger() call. | |
* purchaseAmount is BigDecimal, e.g. BigDecimal.valueOf(4.32). | |
* currency is Currency, e.g. Currency.getInstance("USD"), | |
* where the string is from http://en.wikipedia.org/wiki/ISO_4217. | |
* parameters is Bundle. | |
*/ | |
logger.logPurchase(purchaseAmount, 'USD', { | |
contents: itemsArray, // Same array as firebase | |
num_items: 1, | |
content_type: "product" | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment