syncAmazonPurchase
fun syncAmazonPurchase(productID: String, receiptID: String, amazonUserID: String, isoCurrencyCode: String?, price: Double?)
This method will send an Amazon purchase to the RevenueCat backend. This function should only be called if you have set purchasesAreCompletedBy to MY_APP or when performing a client side migration of your current users to RevenueCat.
The receipt IDs are cached if successfully posted so they are not posted more than once.
Parameters
productID
Product ID associated to the purchase.
receiptID
ReceiptId that represents the Amazon purchase.
amazonUserID
Amazon's userID. This parameter will be ignored when syncing a Google purchase.
isoCurrencyCode
Product's currency code in ISO 4217 format.
price
Product's price.