PayMe API
🖖🏻 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