paypale/doc.go

11 lines
547 B
Go
Raw Normal View History

2015-12-29 07:02:03 +01:00
/*
2016-05-01 20:07:35 +02:00
Package paypalsdk provides a wrapper to PayPal API (https://developer.paypal.com/webapps/developer/docs/api/).
2016-03-07 07:00:22 +01:00
The first thing you do is to create a Client (you can select API base URL using paypalsdk contants).
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()
2016-12-22 06:06:00 +01:00
After you have an access token you can call built-in functions to get data from PayPal.
2015-12-29 07:02:03 +01:00
paypalsdk will assign all responses to go structures.
*/
package paypalsdk