2015-12-29 07:02:03 +01:00
|
|
|
/*
|
|
|
|
Package paypalsdk provides a warepper to PayPal API (https://developer.paypal.com/webapps/developer/docs/api/).
|
2015-12-29 10:21:11 +01:00
|
|
|
The first thing you do is to create a Client (you can select API base URL using paypalsdk contsnts).
|
2015-12-29 07:02:03 +01:00
|
|
|
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 funtions to get data from PayPal.
|
|
|
|
paypalsdk will assign all responses to go structures.
|
|
|
|
*/
|
|
|
|
package paypalsdk
|