RevenueCat / purchases-android

Android in-app purchases and subscriptions made easy.
https://www.revenuecat.com/
MIT License
234 stars 44 forks source link

Use correct product context with `DEFERRED` purchases #1766

Closed tonidero closed 1 week ago

tonidero commented 1 week ago

Description

Another followup to #1751 and #1764

When making DEFERRED purchases, Google returns the result using the old product id. We need to cache all the context information using the old product id so we can attribute it correctly.

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 83.26%. Comparing base (a36b1cc) to head (3c2bdad).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1766 +/- ## ======================================= Coverage 83.25% 83.26% ======================================= Files 223 223 Lines 7614 7617 +3 Branches 1070 1071 +1 ======================================= + Hits 6339 6342 +3 Misses 854 854 Partials 421 421 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.