Skip to content

An example on how to use Golang and Vue to plug in to the PCI Vault

Notifications You must be signed in to change notification settings

pci-vault/golang-vue-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PCI Vault PCD Form Golang-Vue example

This is a working example on how to use the PCI Vault API with a Vue frontend and Golang backend.

This project has code that:

This example is for reference purposes only. Use it to copy code into your project, but make sure to read and understand the code first. You will also have to add your own error handling, this code handles the happy case only.

Running

In order to run the example, set the following environment variables:

PCI_KEY=key-user
PCI_PASSPHRASE=key-passphrase
PCI_BASIC_AUTH=username:password

then cd to the backend directory and run go run main.go.

In a separate terminal cd to the frontend directory and run npm install followed by npm run dev.

Configuration

These environment variable are also significant:

DEBUG_MODE=true # send proxy requests with debug flag enabled (default is false)
STRIPE_KEY=sk_your_stripe_key # Stripe key for testing Stripe integration

More Information