godot-sdk-integrations / godot-ios-plugins

MIT License
139 stars 54 forks source link

Return the receipt for restored purchases #11

Closed timoschwarzer closed 3 years ago

timoschwarzer commented 3 years ago

This PR allows getting the receipt for restored purchases. This is necessary if you want to verify a restored purchase on a server.

naithar commented 3 years ago

Thanks!

Difference commented 3 years ago

@timoschwarzer I tried to use a nuget package for reciept verification, but the there is a bug in Godot ios export that does not copy the dll. Do you have a way to parse the receipt?

Also: The appstore plugin should probably have GetReceipt(), RefreshReceipt() and maybe ValidateReceipt() as seperate functions, in order to get the original purchase date/version, when changing an app from Paid to Freemium.

Some more context here: https://github.com/godotengine/godot-docs/pull/5197#issuecomment-905464085

Difference commented 3 years ago

Made some C# code that sends the receipt to Apple servers, returning json. https://github.com/godotengine/godot-docs/pull/5197#issuecomment-906302479