com.paypal.api.payments
Class FuturePayment
java.lang.Object
com.paypal.api.payments.Payment
com.paypal.api.payments.FuturePayment
public class FuturePayment
- extends Payment
| Methods inherited from class com.paypal.api.payments.Payment |
create, create, execute, execute, get, get, getCart, getCreateTime, getExperienceProfileId, getId, getIntent, getLastRequest, getLastResponse, getLinks, getPayer, getRedirectUrls, getState, getTransactions, getUpdateTime, initConfig, initConfig, initConfig, list, list, setCart, setCreateTime, setExperienceProfileId, setId, setIntent, setLinks, setPayer, setRedirectUrls, setState, setTransactions, setUpdateTime, toJSON, toString |
FuturePayment
public FuturePayment()
create
public Payment create(String accessToken,
String correlationId)
throws PayPalRESTException,
FileNotFoundException,
IOException
- Creates a future payment using either authorization code or refresh token with correlation ID.
https://developer.paypal.com/webapps/developer/docs/integration/mobile/make-future-payment/
- Parameters:
authorizationCode - an authorization codeaccessToken - an access tokencorrelationId - paypal application correlation ID
- Returns:
- a
Payment object
- Throws:
PayPalRESTException
IOException - thrown when config file cannot be read properly
FileNotFoundException - thrown when config file does not exist
getTokeninfo
public Tokeninfo getTokeninfo(CreateFromAuthorizationCodeParameters params)
throws PayPalRESTException
- Throws:
PayPalRESTException
getTokeninfo
public Tokeninfo getTokeninfo(CreateFromRefreshTokenParameters params,
Tokeninfo info)
throws PayPalRESTException
- Throws:
PayPalRESTException
getClientCredential
public ClientCredentials getClientCredential()
throws FileNotFoundException,
IOException
- Throws:
FileNotFoundException
IOException
Copyright © 2015. All Rights Reserved.