-
Notifications
You must be signed in to change notification settings - Fork 33
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
Added purchaseData to PurchaseResponse to enable validation of purchases #9
Conversation
is this repository still active? Seems like there are several issues and missing features that would really help making this library a great one. |
No, looks like it's been abandoned. |
That's sad since currently it seems to be the best rx-solution for billing. I haven't found any other lib for that purpose that is thought through very well. ... well I've forked it and will see if I'll contribute some parts |
Hi @virusman, @TheWhiteLlama, Why do you need raw purchase data, rather than From my understanding, the developer "free to use" field for custom validation is developer payload, which Did I miss something? |
Developer payload is useless for validation unless the entire receipt can be validated with a signature.
For client-server apps, validation is essential, and one has to send the raw JSON to the server to be able to validate it. |
Makes sense, thanks for the explanation and contribution. |
I've also made a similar change to getPurchases: |
That would be great. |
I think you should keep the name purchaseData as this is how Google refers to it. |
Merged, thanks! |
It doesn't validate anything yet, but now gives access to the raw purchase data that can be used to validate the signature.
#5