paypal/doc.go

11 lines
529 B
Go
Raw Normal View History

2015-12-29 07:02:03 +01:00
/*
2019-08-21 15:50:20 +02:00
Package paypal 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 paypal contants).
c, err := paypal.NewClient("clientID", "secretID", paypal.APIBaseSandBox)
2015-12-29 07:02:03 +01:00
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.
2019-08-21 15:50:20 +02:00
paypal will assign all responses to go structures.
2015-12-29 07:02:03 +01:00
*/
2019-08-21 15:50:20 +02:00
package paypal