/Myket

Primary LanguageC#MIT LicenseMIT

Myket Rest API Documentation

.NET NuGet version (MyketApi)
This is a simple C# implantation of Myket Rest API, for more information you can go to Myket documentation page

Installation

Package Manager
Install-Package MyketApi -Version 1.1.0
.NET CLI
dotnet add package MyketApi --version 1.1.0

Usage

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");

Usage of the result

 if (result.Successful)
 {
	 //use result.PurchaseResult
	 //...
 }
 else
 {
	 //use result.Error
	 //...
 }

Feel free to contact me or fork this repository for improvement :)