paypalnvp.fields
Enum PaymentAction

java.lang.Object
  extended by java.lang.Enum<PaymentAction>
      extended by paypalnvp.fields.PaymentAction
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PaymentAction>

public enum PaymentAction
extends java.lang.Enum<PaymentAction>
implements java.io.Serializable

How you want to obtain payment You cannot set this value to Sale on SetExpressCheckout request and then change this value to Authorization on the final PayPal Express Checkout API DoExpressCheckoutPayment request.


Enum Constant Summary
AUTHORIZATION
          Indicates that this payment is a basic authorization subject to settlement with PayPal Authorization & Capture.
ORDER
          Indicates that this payment is is an order authorization subject to settlement with PayPal Authorization & Capture.
SALE
          Indicates that this is a final sale for which you are requesting payment.
 
Method Summary
 java.lang.String getValue()
           
static PaymentAction valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PaymentAction[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AUTHORIZATION

public static final PaymentAction AUTHORIZATION
Indicates that this payment is a basic authorization subject to settlement with PayPal Authorization & Capture.


ORDER

public static final PaymentAction ORDER
Indicates that this payment is is an order authorization subject to settlement with PayPal Authorization & Capture.


SALE

public static final PaymentAction SALE
Indicates that this is a final sale for which you are requesting payment.

Method Detail

values

public static PaymentAction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PaymentAction c : PaymentAction.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PaymentAction valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getValue

public java.lang.String getValue()
Returns:
string value for nvp request