Class RecurringReActivateTransaction


public class RecurringReActivateTransaction extends RecurringTransaction

 This class is used to perform a recurring transaction with
 reactivate action.

 RecurringReactivatetransaction reactivates a profile with inactive STATUS.
 (Profiles can be deactivated for the following reasons: the term has completed,
 the profile reached maximum allowable payment failures, or the profile is canceled.)
 Reactivation gives the option to alter any profile parameter, including an
 Optional Transaction and a new start date must be specified .

  ...............
 // Populate data objects
 ...............

 //Set the Recurring related information.
 RecurringInfo recurInfo = new RecurringInfo();
 recurInfo.setOrigProfileId ("RT0000001350");
 // The date that the first payment will be processed.
 // This will be of the format mmddyyyy.
 recurInfo.setStart ("01012009");
 ////////////////////////////////////

 // Create a new Recurring ReActivate Transaction.
 RecurringReActivateTransaction trans = new RecurringReActivateTransaction(
 user, connection, recurInfo, PayflowUtility.getRequestId());

 // Submit the transaction.
 Response resp = trans.submitTransaction();

 if (Resp != null)
 {
 // Get the Transaction Response parameters.
 TransactionResponse trxnResponse =  resp.getTransactionResponse();
 if (trxnResponse != null)
 {
 System.out.println("RESULT = " + trxnResponse.getResult());
 System.out.println("RESPMSG = " + trxnResponse.getRespMsg());
 }

 // Get the Recurring Response parameters.
 RecurringResponse recurResponse = resp.getRecurringResponse();
 if (recurResponse != null)
 {
 System.out.println("RPREF = " + recurResponse.getRPRef());
 System.out.println("PROFILEID = " + recurResponse.getProfileId());
 }
 }
 // Get the Context and check for any contained SDK specific errors.
 Context ctx = resp.getTransactionContext();
 if (ctx != null & ctx.getErrorCount() > 0)
 {
 System.out.println("/n" + "Errors = " + Ctx.ToString());
 }
 
 
  • Constructor Details

    • RecurringReActivateTransaction

      public RecurringReActivateTransaction(UserInfo userInfo, PayflowConnectionData payflowConnectionData, RecurringInfo recurringInfo, String requestId)
      Constructor
      Parameters:
      userInfo - UserInfo - User Info object populated with user credentials.
      payflowConnectionData - PayflowConnectionData - Connection credentials object.
      recurringInfo - RecurringInfo - Recurring Info object.
      requestId - String - Request Id *

      Each derived class of RecurringTransaction specifies a unique action transaction. This class can also be directly used to perform a recurring transaction. Alternatively, a new class can be extended from this to create a specific recurring action transaction.

      ............... // Populate data objects ............... *

      // Create a new RecurringReActivateTransaction. RecurringReActivateTransaction trans = new RecurringReActivateTransaction(user, connection, recurInfo, payflowUtility.getRequestId ()); *

      // Submit the transaction. Response resp = trans.submitTransaction();

    • RecurringReActivateTransaction

      public RecurringReActivateTransaction(UserInfo userInfo, RecurringInfo recurringInfo, String requestId)
      Constructor
      Parameters:
      userInfo - UserInfo - User Info object populated with user credentials.
      recurringInfo - RecurringInfo - Recurring Info object.
      requestId - String - Request Id *

      Each derived class of RecurringTransaction specifies a unique action transaction. This class can also be directly used to perform a recurring transaction. Alternatively, a new class can be extended from this to create a specific recurring action transaction.

      ............... // Populate data objects ............... *

      // Create a new RecurringReActivateTransaction. RecurringReActivateTransaction trans = new RecurringReActivateTransaction(user, recurInfo, payflowUtility.getRequestId ()); *

      // Submit the transaction. Response resp = trans.submitTransaction();

    • RecurringReActivateTransaction

      public RecurringReActivateTransaction(UserInfo userInfo, PayflowConnectionData payflowConnectionData, RecurringInfo recurringInfo, Invoice invoice, BaseTender tender, String requestId)
      Constructor
      Parameters:
      userInfo - UserInfo - User Info object populated with user credentials.
      payflowConnectionData - PayflowConnectionData - Connection credentials object.
      recurringInfo - RecurringInfo - Recurring Info object.
      invoice - Invoice - Invoice object.
      tender - Tender - Tender object such as Card Tender.
      requestId - String - Request Id *

      Each derived class of RecurringTransaction specifies a unique action transaction. This class can also be directly used to perform a recurring transaction. Alternatively, a new class can be extended from this to create a specific recurring action transaction.

      ............... // Populate data objects ............... *

      // Create a new RecurringReActivateTransaction. RecurringReActivateTransaction trans = new RecurringReActivateTransaction(user, connection, recurInfo, inv, tender, payflowUtility.getRequestId ()); *

      // Submit the transaction. Response resp = trans.submitTransaction();

    • RecurringReActivateTransaction

      public RecurringReActivateTransaction(UserInfo userInfo, RecurringInfo recurringInfo, Invoice invoice, BaseTender tender, String requestId)
      Constructor
      Parameters:
      userInfo - UserInfo - User Info object populated with user credentials.
      recurringInfo - RecurringInfo - Recurring Info object.
      invoice - Invoice - Invoice object.
      tender - Tender - Tender object such as Card Tender.
      requestId - String - Request Id *

      Each derived class of RecurringTransaction specifies a unique action transaction. This class can also be directly used to perform a recurring transaction. Alternatively, a new class can be extended from this to create a specific recurring action transaction.

      ............... // Populate data objects ............... *

      // Create a new RecurringReActivateTransaction. RecurringReActivateTransaction trans = new RecurringReActivateTransaction(user, recurInfo, inv, tender, payflowUtility.getRequestId ()); *

      // Submit the transaction. Response resp = trans.submitTransaction();