You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a routine to recheck all my user receipts so I can deactivate expired subscriptions on a schedule. If there is a better way to detect expired accounts please let me know! I'm unaware of the best practices for checking subscriptions on a schedule.
Problem is if I just send the purchaseToken in to iap.validate it thinks it's an apple receipt and fails.
Obviously I'm doing something wrong.
What I'm doing:
Sending android receipts to my server and validating them (data and signature).
Taking the purchaseToken that is returned and storing it in my database.
Calling iap.validate with the purchase token (probably not the correct thing to do)
I should need packageName, productId and purchaseToken but I can't figure out where/how to use them to get back the purchaseData so I can call isExpired on it.
I made a routine to recheck all my user receipts so I can deactivate expired subscriptions on a schedule. If there is a better way to detect expired accounts please let me know! I'm unaware of the best practices for checking subscriptions on a schedule.
Problem is if I just send the purchaseToken in to iap.validate it thinks it's an apple receipt and fails.
Obviously I'm doing something wrong.
What I'm doing:
I should need packageName, productId and purchaseToken but I can't figure out where/how to use them to get back the purchaseData so I can call isExpired on it.
How do I revalidate android purchaseTokens for subscriptions?
The text was updated successfully, but these errors were encountered: