Golang client for PayPal REST API
Go to file
2015-11-02 16:39:07 +07:00
examples little fixes after understanding 2015-10-30 14:02:32 +07:00
.travis.yml client_test.go 2015-10-15 12:52:16 +07:00
auth_test.go little fixes after understanding 2015-10-30 14:02:32 +07:00
auth.go little fixes after understanding 2015-10-30 14:02:32 +07:00
client_test.go little fixes after understanding 2015-10-30 14:02:32 +07:00
client.go little fixes after understanding 2015-10-30 14:02:32 +07:00
LICENSE.md MIT 2015-10-14 12:03:03 +07:00
payment_test.go payment test function 2015-11-02 16:39:07 +07:00
payment.go payment test function 2015-11-02 16:39:07 +07:00
README.md little fixes after understanding 2015-10-30 14:02:32 +07:00
types.go payment test function 2015-11-02 16:39:07 +07:00

Build Status

PayPal REST API

Usage

// Create a client instance
c, err := paypalsdk.NewClient("clietnid", "secret", paypalsdk.APIBaseSandBox)
// Redirect client to this URL with provided redirect URI and necessary scopes. It's necessary to retreive authorization_code
authCodeURL, err := c.GetAuthorizationCodeURL("https://example.com/redirect-uri", []string{"address"})
// When you will have authorization_code you can get an access_token
accessToken, err := c.GetAccessToken(authCode, "https://example.com/redirect-uri")