Skip to content
This repository was archived by the owner on Apr 26, 2026. It is now read-only.
This repository was archived by the owner on Apr 26, 2026. It is now read-only.

getAvailablePurchases does not returns unfinished transactions #3098

Description

@dharmeshgigs

Hi,

Scenario For Android

  • Initiate request purchase
  • Click on buy button
  • Payment successful
  • Immediately user interrupted by another app or app killed
  • App restarts, getAvailablePurchases returns Empty list
  • When Next time, Try to initiate the request purchase returns "You already own this item"

How can I fix or handle this case?

Below is my code fetch unfinished transactions

for (const purchase of purchases) { if (Platform.OS === 'android') { const androidPurchase = purchase as PurchaseAndroid; const body = { paymentProvider: IN_APP_PURCHASE_PROVIDER.GOOGLE_PLAY, purchaseToken: androidPurchase.purchaseToken, productId: androidPurchase.productId, receipt: '', transactionId: '', exTransactionId: androidPurchase.obfuscatedAccountIdAndroid, }; retryExclusiveContent(body); } else if (Platform.OS === 'ios') { const iosPurchase = purchase as PurchaseIOS; const body = { paymentProvider: IN_APP_PURCHASE_PROVIDER.APPLE, purchaseToken: iosPurchase.purchaseToken, productId: iosPurchase.productId, receipt: '', transactionId: iosPurchase.transactionId, exTransactionId: iosPurchase.appAccountToken, }; retryExclusiveContent(body); } finishTransactionPurchase(purchase); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions