vgs-samples / Golang-snippet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VGS Logo

Golang snippets to use VGS proxy to redact and reveal

How to run

Import routes

  1. Go to VGS dashboard -> Routes -> Import Routes and import routes/inbound.yaml and routes/outbound.yaml

Inbound

go build example-inbound.go

Then run binary

./example-inbound

Take a look at response payload:

"json": {
  "card": "tok_sandbox_czyCsWKgmFJGFeL76PsBig", 
  "cvc": "tok_sandbox_4Se6PmhRrQZBEyLrGD1vbV"
}

Outbound

Copy created card/cvc aliases from the above step and put to the example-outbound.go

go build example-outbound.go

Then run binary

./example-outbound

go-demo

About


Languages

Language:Go 100.0%