Interface PayPalTokenResponseOutput.Builder

  • Method Details

    • bearerToken

      PayPalTokenResponseOutput.Builder bearerToken(String bearerToken)

      Bearer credential for the Authorization header. A short-lived OAuth2 access token minted from the merchant's clientId/clientSecret. The caller applies it as Authorization: Bearer <bearerToken>.

      Parameters:
      bearerToken - Bearer credential for the Authorization header. A short-lived OAuth2 access token minted from the merchant's clientId/clientSecret. The caller applies it as Authorization: Bearer <bearerToken>.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tokenExpiry

      PayPalTokenResponseOutput.Builder tokenExpiry(Long tokenExpiry)

      Unix timestamp (seconds) when the bearer token expires.

      Parameters:
      tokenExpiry - Unix timestamp (seconds) when the bearer token expires.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scope

      Space-delimited OAuth2 scopes granted to the token, when PayPal returns them.

      Parameters:
      scope - Space-delimited OAuth2 scopes granted to the token, when PayPal returns them.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • environment

      PayPalTokenResponseOutput.Builder environment(String environment)

      The provider's PayPal environment. The bearer is valid only against this environment's API: https://api-m.paypal.com for LIVE, https://api-m.sandbox.paypal.com for SANDBOX.

      Parameters:
      environment - The provider's PayPal environment. The bearer is valid only against this environment's API: https://api-m.paypal.com for LIVE, https://api-m.sandbox.paypal.com for SANDBOX.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • environment

      The provider's PayPal environment. The bearer is valid only against this environment's API: https://api-m.paypal.com for LIVE, https://api-m.sandbox.paypal.com for SANDBOX.

      Parameters:
      environment - The provider's PayPal environment. The bearer is valid only against this environment's API: https://api-m.paypal.com for LIVE, https://api-m.sandbox.paypal.com for SANDBOX.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: