com.paypal.adaptive.exceptions
Class AuthorizationRequiredException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.paypal.adaptive.exceptions.AuthorizationRequiredException
- All Implemented Interfaces:
- java.io.Serializable
public class AuthorizationRequiredException
- extends java.lang.Exception
- Author:
- palavilli
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
payKey
protected java.lang.String payKey
preapprovalKey
protected java.lang.String preapprovalKey
AuthorizationRequiredException
public AuthorizationRequiredException()
getPayKey
public java.lang.String getPayKey()
- Returns:
- the payKey
setPayKey
public void setPayKey(java.lang.String payKey)
- Parameters:
payKey - the payKey to set
getPreapprovalKey
public java.lang.String getPreapprovalKey()
- Returns:
- the preapprovalKey
setPreapprovalKey
public void setPreapprovalKey(java.lang.String preapprovalKey)
- Parameters:
preapprovalKey - the preapprovalKey to set
getAuthorizationUrl
public java.lang.String getAuthorizationUrl(ServiceEnvironment env)
throws java.io.UnsupportedEncodingException
- Generates the PayPal Authorization Url with appropriate parameters
- Parameters:
env -
- Returns:
- Authorization Url
- Throws:
java.io.UnsupportedEncodingException
getEmbeddedPaymentsAuthorizationUrl
public java.lang.String getEmbeddedPaymentsAuthorizationUrl(ServiceEnvironment env,
ExpType expType)
throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException