transferPlayOwnershipToCurrentUser method
Transfer a Google Play purchase's ownership to the currently-identified user. Use after an identify call when you want to claim a Play purchase that was previously made under a different ZeroSettle account.
Both productId and originalTransactionId are required — the Play
API needs the purchase token (carried as originalTransactionId) in
addition to the product reference to resolve which purchase is being
transferred. Typical usage: render a PendingClaim, then call this
with the claim's productId + originalTransactionId.
Android-only. On iOS the bridge returns not_implemented — use
transferStoreKitOwnershipToCurrentUser for the StoreKit equivalent.
Implementation
Future<void> transferPlayOwnershipToCurrentUser({
required String productId,
required String originalTransactionId,
}) =>
_wrap(() => _platform.transferPlayOwnershipToCurrentUser(
productId: productId,
originalTransactionId: originalTransactionId,
));