You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
899 B

  1. // Copyright 2015 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // Package paypal provides constants for using OAuth2 to access PayPal.
  5. package paypal // import "golang.org/x/oauth2/paypal"
  6. import (
  7. "golang.org/x/oauth2"
  8. )
  9. // Endpoint is PayPal's OAuth 2.0 endpoint in live (production) environment.
  10. var Endpoint = oauth2.Endpoint{
  11. AuthURL: "https://www.paypal.com/webapps/auth/protocol/openidconnect/v1/authorize",
  12. TokenURL: "https://api.paypal.com/v1/identity/openidconnect/tokenservice",
  13. }
  14. // SandboxEndpoint is PayPal's OAuth 2.0 endpoint in sandbox (testing) environment.
  15. var SandboxEndpoint = oauth2.Endpoint{
  16. AuthURL: "https://www.sandbox.paypal.com/webapps/auth/protocol/openidconnect/v1/authorize",
  17. TokenURL: "https://api.sandbox.paypal.com/v1/identity/openidconnect/tokenservice",
  18. }