golang.org/x/oauth2@v0.18.0/paypal/paypal.go (about) 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 5 // Package paypal provides constants for using OAuth2 to access PayPal. 6 package paypal // import "golang.org/x/oauth2/paypal" 7 8 import ( 9 "golang.org/x/oauth2" 10 ) 11 12 // Endpoint is PayPal's OAuth 2.0 endpoint in live (production) environment. 13 var Endpoint = oauth2.Endpoint{ 14 AuthURL: "https://www.paypal.com/webapps/auth/protocol/openidconnect/v1/authorize", 15 TokenURL: "https://api.paypal.com/v1/identity/openidconnect/tokenservice", 16 } 17 18 // SandboxEndpoint is PayPal's OAuth 2.0 endpoint in sandbox (testing) environment. 19 var SandboxEndpoint = oauth2.Endpoint{ 20 AuthURL: "https://www.sandbox.paypal.com/webapps/auth/protocol/openidconnect/v1/authorize", 21 TokenURL: "https://api.sandbox.paypal.com/v1/identity/openidconnect/tokenservice", 22 }