setVariationId

fun setVariationId(forTransactionId: String, variationId: String, callback: ErrorCallback)

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

See also

Parameters

variationId

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

forTransactionId

A string identifier (purchase.getOrderId()) of the purchase, where the purchase is an instance of the billing library Purchase class.

callback

A result containing the optional AdaptyError.