transferPlayOwnershipToCurrentUser method

  1. @override
Future<void> transferPlayOwnershipToCurrentUser({
  1. required String productId,
  2. required String originalTransactionId,
})
override

Android peer of transferStoreKitOwnershipToCurrentUser. Takes both productId and originalTransactionId (the Play purchase token) — the SDK needs both to resolve the source purchase via the Play API.

Implementation

@override
Future<void> transferPlayOwnershipToCurrentUser({
  required String productId,
  required String originalTransactionId,
}) async {
  await methodChannel.invokeMethod('transferPlayOwnershipToCurrentUser', {
    'productId': productId,
    'originalTransactionId': originalTransactionId,
  });
}