public class MerchantAccessTokenService extends BasicAccessTokenService implements AccessTokenService
config, credentials, errorMessage, gateway, OAUTH_TOKEN_RESOURCE_PATH, payload
Constructor and Description |
---|
MerchantAccessTokenService(PayPalPlusConfig config,
PayPalRequestGateway gateway,
PayPalPlusCredentials credentials) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccessToken()
Requests an access token for access to the paypal API.
|
createTokenRequest
public MerchantAccessTokenService(PayPalPlusConfig config, PayPalRequestGateway gateway, PayPalPlusCredentials credentials)
public java.lang.String getAccessToken() throws PaypalAccessException
AccessTokenService
getAccessToken
in interface AccessTokenService
getAccessToken
in class BasicAccessTokenService
PaypalAccessException
- in case the access
token request failed.