paypalnvp.fields
Class ActivationDetails

java.lang.Object
  extended by paypalnvp.fields.ActivationDetails
All Implemented Interfaces:
java.io.Serializable, RequestFields

public final class ActivationDetails
extends java.lang.Object
implements RequestFields

Activation Details Fields

See Also:
Serialized Form

Constructor Summary
ActivationDetails()
           
 
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
 void setFailedInitialAmountAction(boolean continueOnFailure)
          By default, PayPal will suspend the pending profile in the event that the initial payment amount fails.
 void setInitialAmount(java.lang.String amount)
          Initial non-recurring payment amount due immediately upon profile creation.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActivationDetails

public ActivationDetails()
Method Detail

setInitialAmount

public void setInitialAmount(java.lang.String amount)
                      throws java.lang.IllegalArgumentException
Initial non-recurring payment amount due immediately upon profile creation. Use an initial amount for enrolment or set-up fees. Note: All amounts included in the request must have the same currency. Character length and limitations: Does not exceed $10,000 USD in any currency. No currency symbol. Regardless of currency, decimal separator is a period (.). Equivalent to nine characters maximum for USD.

Parameters:
amount -
Throws:
java.lang.IllegalArgumentException

setFailedInitialAmountAction

public void setFailedInitialAmountAction(boolean continueOnFailure)
By default, PayPal will suspend the pending profile in the event that the initial payment amount fails. You can override this default behaviour by setting this field to to true 'continueOnFailure', which indicates that if the initial payment amount fails, PayPal should add the failed payment amount to the outstanding balance for this recurring payment profile. When the continueOnFailure is set to true, a success code will be returned to the merchant in the CreateRecurringPaymentsProfile response and the recurring payments profile will be activated for scheduled billing immediately. You should check your IPN messages or PayPal account for updates of the payment status. If this field is not set to true, PayPal will create the recurring payment profile, but will place it into a pending status until the initial payment is completed. If the initial payment clears, PayPal will notify you by IPN that the pending profile has been activated. If the payment fails, PayPal will notify you by IPN that the pending profile has been cancelled.

Parameters:
action -

getNVPRequest

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

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

toString

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