com.paypal.api.payments
Class FuturePayment

java.lang.Object
  extended by com.paypal.api.payments.Payment
      extended by com.paypal.api.payments.FuturePayment

public class FuturePayment
extends Payment


Constructor Summary
FuturePayment()
           
 
Method Summary
 Payment create(String accessToken, String correlationId)
          Creates a future payment using either authorization code or refresh token with correlation ID.
 ClientCredentials getClientCredential()
           
 Tokeninfo getTokeninfo(CreateFromAuthorizationCodeParameters params)
           
 Tokeninfo getTokeninfo(CreateFromRefreshTokenParameters params, Tokeninfo info)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FuturePayment

public FuturePayment()
Method Detail

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 code
accessToken - an access token
correlationId - 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.