go-pay-me

module
v0.0.0-...-aead407 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2020 License: MIT

README

PayMe API

codecov go-report go-mod license

🖖🏻 A simple api application written in Go

Quick Start (Docker Deploy)

$ docker-compose up --build

Development (Non-Dockerized Deploy)

1.Clone Source Code
$ git clone https://github.com/murilosrg/go-pay-me
$ cd go-pay-me
2.Download Requirements
$ go mod download
3.Create Configuration
$ touch /etc/payme/configuration.yaml
# configuration for dev
db:
  driver: sqlite3
  addr: ./payme.db
address: ":8080"
acquires:
  stoneUrl: "http://demo4605147.mockable.io/stone/"
  cieloUrl: "http://demo4605147.mockable.io/cielo/"
Param Description
db Database configure, supports sqlite3, mysql, postgres
address Listen address
acquires url of acquires mocked

obs: all payments over 10 will be approved and below that will be disapproved

4.Init and Run
$ (sudo) go run ./cmd/payme -init

Run Test

$ (sudo) go test ./cmd/payme

License

MIT

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL