Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

gabstv/pagsego

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pagsego

PagSeguro API in Go (golang) (WIP)

req := pagsego.NewPaymentRequest("TOKEN", "vendedor@email.com", "REFID", "REDIRECTURI", "NOTIFICATIONURI")
req.AddItem("ID", "DESCRIPTION", 23.56, 1)
req.SetBuyer("Nome do Comprador", "comprador@email.com").SetCPF("00000000000")
req.SetShipping(pagsego.ShippingSEDEX, 10.0).SetAddress("SP", "São Paulo", "00000000", "Bairro", "Rua Teste", "1040", "Apt 111")

fmt.Println(result.Success)
if result.Success {
	fmt.Println(result.CheckoutResponse.Code)
}

About

PagSeguro API in Go (golang) (WIP)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages