PaySimple Go Library
Set the environmental variables PAYSIMPLE_USER and PAYSIMPLE_SECRET
Create either a live or sandboxed API:
api := API()
// Or
api := Sandbox()Create customers, accounts, and payments as needed:
customer := Customer{
FirstName: "Test",
LastName: "Customer",
ShippingSameAsBilling: true,
}
created, err := api.Customers.Create(customer)
if err != nil {
log.Panic(err)
}For more information, see the PaySimple API documentation: http://developer.paysimple.com/documentation/
- aodin, 2015