Skip to content

cardtokens/demo-cardtokens-golang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

demo-cardtokens-golang

Introduction

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

Steps to use this example code on Ubuntu

Clone repo

git clone https://github.com/cardtokens/demo-cardtokens-golang.git

Navigate to folder locally

cd demo-cardtokens-golang

Replace the constants in cardtokens.go with your actual values:

const PUBLIC_KEY_PEM string = "your_public_key"
const MERCHANTID string = "your_merchant_id"
const APIKEY string = "your_api_key"

Install golang

Start with update

sudo apt-get update
sudo apt-get upgrade

Install golang

sudo apt install golang

Run the program

go run cardtokens.go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages