Receipt Manager
Builds the device's purchases, entitlements and customer info from the Store's receipts. It reads only neutral store types; the SDK builds it with its own store.
Constructors
Kept for its public signature. billing is read as a Store; a custom subscriptionStatusProvider is still handed the original Play purchase.
Types
Functions
Returns experimental device variables for backwards compatibility. These are used in device variables for paywall templating.
Loads purchased products from device receipts and builds enriched entitlements.
Rebuilds the receipt-derived state after the user scope was wiped (reset or a switch to another user). Play purchases belong to the device's Play account, not the app user, so they're read again and stored for the new user instead of staying empty until the next purchase or restore. The old user's in-memory values are dropped first, so a failed read leaves the new user with no receipt state until the next successful load.