pagarme

command module
v0.0.0-...-de240af Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

Build Status

Installation

Pagar.me requires GoLang and golang/dep

On MacOS you can install or upgrade to the latest released version with Homebrew:

$ brew install dep
$ brew upgrade dep

On Debian platforms you can install or upgrade to the latest version with apt-get:

$ sudo apt-get install go-dep

After run command build in MAKEFILE

$  make build

Run

$  ./bin/pagarme
Stone test

Usage:
  pagarme [command]

Available Commands:
  boleto      Gerar boleto
  cartao      Gerar cobramça cartão
  help        Help about any command

Flags:
      --config string   config file (default is $HOME/.pagarme.yaml)
  -h, --help            help for pagarme
  -t, --toggle          Help message for toggle

Use "pagarme [command] --help" for more information about a command.
Boleto
$  ./bin/pagarme boleto
Gerar boleto
Usage:
  pagarme boleto [flags]

Flags:
  -a, --amount float      Amount value
  -d, --document string   Document
  -h, --help              help for boleto
  -n, --name string       Name

Exemple:

  $  ./bin/pagarme boleto  --amount 33.00 --name Leandro --document 251.854.650-26
Credit card
$  ./bin/pagarme cartao
Gerar cobramça cartão

Usage:
  pagarme cartao [flags]

Flags:
  -a, --amount float                Amount value
  -v, --cardCVV string              Card CVV
  -e, --cardExpirationDate string   Card Expiration Date
  -N, --cardHolderName string       Card Holder Name
  -c, --cardNumber string           Card Number
  -C, --country string              Country
  -d, --document string             Document
  -h, --help                        help for cartao
  -n, --name string                 Name

Exemple:

  $  ./bin/pagarme cartao --amount 33.00 --name Leandro --document 251.854.650-26 --country br --cardNumber 41111111111111 --cardHolderName Leandro --cardExpirationDate 1028 --cardCVV 123

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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