paypale/example_test.go
2019-08-27 09:09:30 -07:00

18 lines
304 B
Go

package paypal_test
import paypal "github.com/plutov/paypal/v3"
func Example() {
// Initialize client
c, err := paypal.NewClient("clientID", "secretID", paypal.APIBaseSandBox)
if err != nil {
panic(err)
}
// Retrieve access token
_, err = c.GetAccessToken()
if err != nil {
panic(err)
}
}