-
Notifications
You must be signed in to change notification settings - Fork 54
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 } |
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
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? 🤔
Motivation
Description