paypalnvp.request
Class DoExpressCheckoutPayment

java.lang.Object
  extended by paypalnvp.request.DoExpressCheckoutPayment
All Implemented Interfaces:
java.io.Serializable, Request

public final class DoExpressCheckoutPayment
extends java.lang.Object
implements Request

See Also:
Serialized Form

Constructor Summary
DoExpressCheckoutPayment(Payment payment, java.lang.String token, PaymentAction paymentAction, java.lang.String payerId)
           
 
Method Summary
 java.util.Map<java.lang.String,java.lang.String> getNVPRequest()
          Creates and returns part of the nvp (name value pair) request containing request values
 java.util.Map<java.lang.String,java.lang.String> getNVPResponse()
          Return response from paypal.
 void setAddress(Address address)
          Sets address fields
 void setNVPResponse(java.util.Map<java.lang.String,java.lang.String> nvpResponse)
          Setter for nvp (name value pair) response
 void setReturnFMF(boolean fmf)
          Flag to indicate whether you want the results returned by Fraud Management Filters.
 void setUserSelectedOptions(UserSelectedOptions userOptions)
          Sets user selected options
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoExpressCheckoutPayment

public DoExpressCheckoutPayment(Payment payment,
                                java.lang.String token,
                                PaymentAction paymentAction,
                                java.lang.String payerId)
                         throws java.lang.IllegalArgumentException
Parameters:
payment - Should be the same as for SetExpressCheckout
token - PayPal token
paymentAction - How you want to obtain payment
payerId - Unique PayPal customer account identification number as returned by GetExpressCheckoutDetails response
Throws:
java.lang.IllegalArgumentException
Method Detail

setReturnFMF

public void setReturnFMF(boolean fmf)
Flag to indicate whether you want the results returned by Fraud Management Filters. By default this is false.

Parameters:
fmf - true: receive FMF details false: do not receive FMF details (default)

setUserSelectedOptions

public void setUserSelectedOptions(UserSelectedOptions userOptions)
Sets user selected options

Parameters:
userOptions -

setAddress

public void setAddress(Address address)
Sets address fields

Parameters:
address -

getNVPRequest

public java.util.Map<java.lang.String,java.lang.String> getNVPRequest()
Description copied from interface: Request
Creates and returns part of the nvp (name value pair) request containing request values

Specified by:
getNVPRequest in interface Request
Returns:
part of the nvp request as a Map

setNVPResponse

public void setNVPResponse(java.util.Map<java.lang.String,java.lang.String> nvpResponse)
Description copied from interface: Request
Setter for nvp (name value pair) response

Specified by:
setNVPResponse in interface Request

getNVPResponse

public java.util.Map<java.lang.String,java.lang.String> getNVPResponse()
Description copied from interface: Request
Return response from paypal. If response is not set/received returns empty Map.

Specified by:
getNVPResponse in interface Request
Returns:
response from paypal as a Map

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object