Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support repurchasing of consumables in paywalls #2005

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

joshdholtz
Copy link
Member

Motivation

Description

@joshdholtz joshdholtz added the pr:fix A bug fix label Dec 21, 2024
Copy link
Contributor

@tonidero tonidero left a comment

Choose a reason for hiding this comment

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

Looking good, but I do wonder if we should just rely on Google more for this...

@@ -389,6 +389,8 @@ internal class PaywallViewModelImpl(
variableDataProvider = variableDataProvider,
activelySubscribedProductIdentifiers = customerInfo.activeSubscriptions,
nonSubscriptionProductIdentifiers = customerInfo.nonSubscriptionTransactions
// Filter out consumables so they don't get checked in valiation
.filter { !it.shouldConsume }
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm I'm honestly wondering if we should just remove the validation for repurchasing any product and just leave it to google to display a "Already purchased product" if the customer is already subscribed/has a non-consumed product...

Copy link
Member

Choose a reason for hiding this comment

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

+1

Copy link
Member Author

Choose a reason for hiding this comment

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

Did we have this conversation already on my prototype of this from months ago? Because this feels awkwardly familiar? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:fix A bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants