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-php.git
cd demo-cardtokens-php
sudo apt-get update
sudo apt-get upgrade
sudo apt install php8.0
sudo apt install php8.0-openssl
php cardtokens.php