Golang snippets to use VGS proxy to redact and reveal
- Go to VGS dashboard -> Routes -> Import Routes and import
routes/inbound.yaml
androutes/outbound.yaml
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"
}
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