reportTransaction

fun reportTransaction(transactionInfo: TransactionInfo, variationId: String? = null, callback: ResultCallback<AdaptyProfile>)

In Observer mode, Adapty SDK doesn’t know, where the purchase was made from. If you display products using our Paywalls or A/B Tests, you can manually assign variation to the purchase. After doing this, you’ll be able to see metrics in Adapty Dashboard.

Should not be called before activate

Parameters

transactionInfo

A TransactionInfo instance, containing either a string identifier (purchase.getOrderId()) of the purchase, or an instance of the billing library Purchase class.

variationId

A string identifier of variation. You can get it using variationId property of AdaptyPaywall.

callback

A result containing the optional AdaptyError.

See also