implement GalaxyBillingWrapper.queryPurchases()#2969
Conversation
tonidero
left a comment
There was a problem hiding this comment.
Looks good! Just some questions, but I'm ok getting this merged for now.
| val storeTransactions = ownedProducts | ||
| .filter { | ||
| // TO DO: Find out what this returns for OTPs when we support OTPs | ||
| it.subscriptionEndDate.parseDateFromGalaxyDateString() > dateProvider.now |
There was a problem hiding this comment.
Hmm does Galaxy store return all expired subscriptions always? Sad we have to do the filtering locally (time could be modified client side, which could be problematic...). But not familiar if there is a better way.
There was a problem hiding this comment.
Their docs say:
getOwnedList() returns a list of in-app products that the app user currently has from previous purchases
In sandbox, purchases disappear here once they expire, so it probably isn't necessary, but I included this since we don't really know what will happen in production and it looked like we were doing something similar for Amazon
Description
This PR:
queryPurchases(), which is used when posting pending receiptspurchasesUpdatedListener?.onPurchasesFailedToUpdate()inmakePurchaseAsync()when making a product change, which is currently unsupported