public class FuturePayment extends Payment
| Constructor and Description |
|---|
FuturePayment() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(java.lang.Object other) |
Payment |
create(APIContext apiContext,
java.lang.String correlationId)
Creates a future payment using either authorization code or refresh token
with correlation ID.
|
Payment |
create(java.lang.String accessToken,
java.lang.String correlationId)
Creates a future payment using either authorization code or refresh token
with correlation ID.
|
boolean |
equals(java.lang.Object o) |
static java.lang.String |
fetchRefreshToken(APIContext context,
java.lang.String authorizationCode)
Fetches long lived refresh token from authorization code, for future payment use.
|
Tokeninfo |
getTokeninfo(CreateFromAuthorizationCodeParameters params)
Deprecated.
Please use
fetchRefreshToken(APIContext, String) instead.
In this method, we need to pass clientID, secret information that is already known to apiContext. The newer method allows for better
code readability, and make it less error prone. |
Tokeninfo |
getTokeninfo(CreateFromRefreshTokenParameters params,
Tokeninfo info)
Deprecated.
Please use
fetchRefreshToken(APIContext, String) instead.
In this method, we need to pass clientID, secret information that is already known to apiContext. The newer method allows for better
code readability, and make it less error prone. |
int |
hashCode() |
create, create, execute, execute, get, get, getBillingAgreementTokens, getCart, getCreateTime, getCreditFinancingOffered, getExperienceProfileId, getFailedTransactions, getFailureReason, getId, getIntent, getLinks, getNoteToPayer, getPayee, getPayer, getPaymentInstruction, getPotentialPayerInfo, getRedirectUrls, getState, getTransactions, getUpdateTime, list, list, setBillingAgreementTokens, setCart, setCreateTime, setCreditFinancingOffered, setExperienceProfileId, setFailedTransactions, setFailureReason, setId, setIntent, setLinks, setNoteToPayer, setPayee, setPayer, setPaymentInstruction, setPotentialPayerInfo, setRedirectUrls, setState, setTransactions, setUpdateTime, update, updateconfigureAndExecute, configureAndExecute, configureAndExecute, configureAndExecute, createAPICallPreHandler, getClientCredential, getClientID, getClientSecret, getConfigurations, getCredential, getLastRequest, getLastResponse, getOAuthTokenCredential, initConfig, initConfig, initConfig, initializeToDefaulttoJSON, toStringpublic Payment create(java.lang.String accessToken, java.lang.String correlationId) throws PayPalRESTException, java.io.FileNotFoundException, java.io.IOException
accessToken - an access tokencorrelationId - paypal application correlation IDPayment objectPayPalRESTExceptionjava.io.IOException - thrown when config file cannot be read properlyjava.io.FileNotFoundException - thrown when config file does not existpublic Payment create(APIContext apiContext, java.lang.String correlationId) throws PayPalRESTException, java.io.FileNotFoundException, java.io.IOException
apiContext - APIContextcorrelationId - paypal application correlation IDPayment objectPayPalRESTExceptionjava.io.IOException - thrown when config file cannot be read properlyjava.io.FileNotFoundException - thrown when config file does not existpublic Tokeninfo getTokeninfo(CreateFromAuthorizationCodeParameters params) throws PayPalRESTException
fetchRefreshToken(APIContext, String) instead.
In this method, we need to pass clientID, secret information that is already known to apiContext. The newer method allows for better
code readability, and make it less error prone.params - Authorization code paramsTokeninfoPayPalRESTExceptionpublic Tokeninfo getTokeninfo(CreateFromRefreshTokenParameters params, Tokeninfo info) throws PayPalRESTException
fetchRefreshToken(APIContext, String) instead.
In this method, we need to pass clientID, secret information that is already known to apiContext. The newer method allows for better
code readability, and make it less error prone.params - parametersTokeninfoPayPalRESTExceptionpublic static java.lang.String fetchRefreshToken(APIContext context, java.lang.String authorizationCode) throws PayPalRESTException
context - APIContextauthorizationCode - code returned from mobilePayPalRESTException