This example shows how to create a token towards the Cardtokens API, create a cryptogram, get status and delete the Token.
You can run this code directly using a predefined apikey, merchantid and certificate. You can also get a FREE test account and inject with your own apikey, merchantid and certificate. Just visit https://www.cardtokens.io
git clone https://github.com/cardtokens/demo-cardtokens-csharp.git
cd demo-cardtokens-csharp
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install apt-transport-https dirmngr
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get install -y dotnet-sdk-7.0
dotnet build
dotnet run