New Jan 19, 2026

How to associate in-app purchase transactions with app user accounts in Cordova? [closed]

Libraries, Frameworks, etc. All from Newest questions tagged reactjs - Stack Overflow View How to associate in-app purchase transactions with app user accounts in Cordova? [closed] on stackoverflow.com

I’m building a hybrid app using Capacitor + React, with Cordova plugins handling in-app purchases (specifically cordova-plugin-purchase).

My app allows multiple app-level user accounts on the same device. A purchase flow looks like this:

  1. User logs into app account A

  2. User purchases a consumable IAP

  3. Store purchase succeeds (Apple / Google)

  4. App fails to reach backend (e.g., network loss) before associating the transaction with the app user

  5. On next launch, the user logs into a different app account (B)

  6. The store replays the unfinished transaction

On native platforms:

However, I don’t see a way to set or retrieve these values via Cordova plugins.

Questions

  1. Is there any supported way in Cordova to bind a store transaction to an app user account at purchase time?

I’m trying to understand whether Cordova offers a first-class solution here, or whether this is an inherent limitation of the abstraction layer.

Scroll to top