Payment Service

The Payment service verifies the credit card number and (pretend) charges the card.

Local

Run the following command to restore dependencies to vendor/ directory:

dep ensure --vendor-only

Build Docker container

From paymentservice/, run:

docker build ./

Build as binary

# Go version > 15.4 is required
go mod download
go build -o paymentservice .

Test

# Go test
go test .

# Binary test
./paymentservice

GitHub

View Github