Cross-platform In App Billing Plugin for .NET
Each platform handles security of In-App Purchases a bit different. To handle this whenever you make a purchase you should use the date from the purchase to validate on your backend.
Based on the platform this data is a bit different and is returned as part of the InAppBillingPurchase:
No additional authentication is provided.
I recommend reading the Google Play services Security and Design that will walk you through your options on storing your public key.
Not only should your receipt be verified in the app, but ideally it should be verified on a server. I leave this in your hands to add the server side validation by reading Apple and Google’s documentation. I provide everything you need in the
VerifyPurchase method to handle verification.
For examples of implementation I would recommend reading a great blog series by Jonathan Peppers:
<= Back to Table of Contents