This is a simple C# implantation of Myket Rest API,
for more information you can go to Myket documentation page
Install-Package MyketApi -Version 1.1.0
dotnet add package MyketApi --version 1.1.0
First of all you must create configuration instance and initialize it with proper config
var config = new MyketConfiguration(
"Your Myket AccessToken", "Your Package Name");
Then pass it to MyketClient
var client = new MyketClient(config);
And then with this function you can verify purchase
var result = await client.VerifyPurchaseAsync("SKU Id", "Token");
if (result.Successful)
{
//use result.PurchaseResult
//...
}
else
{
//use result.Error
//...
}
Feel free to contact me or fork this repository for improvement :)