Skip to content

Conversation

tonidero
Copy link
Contributor

@tonidero tonidero commented Jul 8, 2025

Description

As the title says. Now, we will rely on Google instead to handle resubscribing. The default behavior by Google is:

  • If trying to purchase the same base plan that the user is already subscribed, display a message indicating so, with a link to manage subscriptions
  • If trying to purchase a different base plan for a product the user is already subscribed to, perform an upgrade/downgrade.
  • If trying to purchase a product the user has an active but cancelled subscription for, resubscribe.

Copy link

codecov bot commented Jul 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.33%. Comparing base (97dc872) to head (8c943f1).
Report is 31 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2492   +/-   ##
=======================================
  Coverage   78.33%   78.33%           
=======================================
  Files         286      286           
  Lines       10432    10432           
  Branches     1500     1500           
=======================================
  Hits         8172     8172           
  Misses       1614     1614           
  Partials      646      646           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tonidero tonidero marked this pull request as ready for review July 8, 2025 09:56
@tonidero tonidero requested review from a team July 8, 2025 09:56
@tonidero
Copy link
Contributor Author

Bump @RevenueCat/sdk

Copy link
Member

@ajpallares ajpallares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one! I love this kind of PRs with mostly red diffs 😄 Much simpler now!

@tonidero tonidero added this pull request to the merge queue Jul 16, 2025
Merged via the queue into main with commit a13ab06 Jul 16, 2025
14 checks passed
@tonidero tonidero deleted the remove-already-subscribed-logic-paywalls branch July 16, 2025 08:49
github-merge-queue bot pushed a commit that referenced this pull request Jul 17, 2025
**This is an automatic release.**

## RevenueCat SDK
### Virtual Currency
#### ✨ New Features
* Virtual Currency Support (#2519) via Will Taylor (@fire-at-will)

## RevenueCatUI SDK
### Paywallv2
#### ✨ New Features
* PaywallActivityLauncher: Add `edgeToEdge` parameter to display paywall
in full screen (#2530) via Toni Rico (@tonidero)
#### 🐞 Bugfixes
* Remove logic to avoid repurchasing already subscribed products (#2492)
via Toni Rico (@tonidero)

### 🔄 Other Changes
* Dont run VC tests on load shedder integration tests (#2538) via Will
Taylor (@fire-at-will)
* Introduces `CompatComposeView` to handle scenarios where the view tree
is not set up (#2527) via JayShortway (@JayShortway)

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
tonidero added a commit that referenced this pull request Aug 25, 2025
### Description
As the title says. Now, we will rely on Google instead to handle
resubscribing. The default behavior by Google is:
- If trying to purchase the same base plan that the user is already
subscribed, display a message indicating so, with a link to manage
subscriptions
- If trying to purchase a different base plan for a product the user is
already subscribed to, perform an upgrade/downgrade.
- If trying to purchase a product the user has an active but cancelled
subscription for, resubscribe.
@tonidero tonidero mentioned this pull request Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants