mirror of
https://github.com/plutov/paypal.git
synced 2025-01-23 10:21:03 +01:00
18 lines
297 B
Go
18 lines
297 B
Go
package paypal_test
|
|
|
|
import "github.com/plutov/paypal/v3"
|
|
|
|
func Example() {
|
|
// Initialize client
|
|
c, err := paypal.NewClient("clientID", "secretID", paypal.APIBaseSandBox)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
// Retrieve access token
|
|
_, err = c.GetAccessToken()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|