paypal/doc.go
Aliaksandr Pliutau b46adc7bf2 goreport badge
2016-12-22 12:06:00 +07:00

11 lines
547 B
Go

/*
Package paypalsdk provides a wrapper to PayPal API (https://developer.paypal.com/webapps/developer/docs/api/).
The first thing you do is to create a Client (you can select API base URL using paypalsdk contants).
c, err := paypalsdk.NewClient("clientID", "secretID", paypalsdk.APIBaseSandBox)
Then you can get an access token from PayPal:
accessToken, err := c.GetAccessToken()
After you have an access token you can call built-in functions to get data from PayPal.
paypalsdk will assign all responses to go structures.
*/
package paypalsdk