Class ReferenceTransaction

java.lang.Object
paypal.payflow.BaseTransaction
paypal.payflow.ReferenceTransaction
Direct Known Subclasses:
CaptureTransaction, FraudReviewTransaction, InquiryTransaction, VoidTransaction

public class ReferenceTransaction extends BaseTransaction
This class is used as base class for all reference transactions. This class can be derived to create a new reference transaction or can be used as is to submit a new type of reference transaction.

A reference transaction is a transaction which always takes the PNRef of a previously submitted transaction.

  • Constructor Details

    • ReferenceTransaction

      protected ReferenceTransaction()
    • ReferenceTransaction

      public ReferenceTransaction(String trxType, String origId, UserInfo userInfo, PayflowConnectionData payflowConnectionData, String requestId)
      Constructor
      Parameters:
      trxType - String - Transaction Type
      origId - String - Original Transaction Id.
      userInfo - UserInfo - User Info object populated with user credentials.
      payflowConnectionData - PayflowConnectionData - Connection credentials object.
      requestId - String - RequestId *

      This class can be derived to create a new reference transaction or can be used as is to submit a new type of reference transaction. A reference transaction is a transaction which always takes the PNRef of a previously submitted transaction.

    • ReferenceTransaction

      public ReferenceTransaction(String trxType, String origId, UserInfo userInfo, String requestId)
      Constructor
      Parameters:
      trxType - String - Transaction Type
      origId - String - Original Transaction Id.
      userInfo - UserInfo - User Info object populated with user credentials.
      requestId - String - RequestId *

      This class can be derived to create a new reference transaction or can be used as is to submit a new type of reference transaction. A reference transaction is a transaction which always takes the PNRef of a previously submitted transaction.

    • ReferenceTransaction

      public ReferenceTransaction(String trxType, String origId, UserInfo userInfo, PayflowConnectionData payflowConnectionData, Invoice invoice, String requestId)
      Constructor
      Parameters:
      trxType - String - Transaction Type
      origId - String - Original Transaction Id.
      userInfo - UserInfo - User Info object populated with user credentials.
      payflowConnectionData - PayflowConnectionData - Connection credentials object.
      invoice - Invoice - Invoice object.
      requestId - String - RequestId *

      This class can be derived to create a new reference transaction or can be used as is to submit a new type of reference transaction. A reference transaction is a transaction which always takes the PNRef of a previously submitted transaction.

    • ReferenceTransaction

      public ReferenceTransaction(String trxType, String origId, UserInfo userInfo, Invoice invoice, String requestId)
      Constructor
      Parameters:
      trxType - String - Transaction Type
      origId - String - Original Transaction Id.
      userInfo - UserInfo - User Info object populated with user credentials.
      invoice - Invoice - Invoice object.
      requestId - String - RequestId *

      This class can be derived to create a new reference transaction or can be used as is to submit a new type of reference transaction. A reference transaction is a transaction which always takes the PNRef of a previously submitted transaction.

    • ReferenceTransaction

      public ReferenceTransaction(String trxType, String origId, UserInfo userInfo, PayflowConnectionData payflowConnectionData, Invoice invoice, BaseTender tender, String requestId)
      Constructor
      Parameters:
      trxType - String - Transaction Type
      origId - String - Original Transaction Id.
      userInfo - UserInfo - User Info object populated with user credentials.
      payflowConnectionData - PayflowConnectionData - Connection credentials object.
      invoice - Invoice - Invoice object.
      tender - Tender - Tender object.
      requestId - String - RequestId *

      This class can be derived to create a new reference transaction or can be used as is to submit a new type of reference transaction. A reference transaction is a transaction which always takes the PNRef of a previously submitted transaction.

    • ReferenceTransaction

      public ReferenceTransaction(String trxType, String origId, UserInfo userInfo, Invoice invoice, BaseTender tender, String requestId)
      Constructor
      Parameters:
      trxType - String - Transaction Type
      origId - String - Original Transaction Id.
      userInfo - UserInfo - User Info object populated with user credentials.
      invoice - Invoice - Invoice object.
      tender - Tender - Tender object.
      requestId - String - RequestId *

      This class can be derived to create a new reference transaction or can be used as is to submit a new type of reference transaction. A reference transaction is a transaction which always takes the PNRef of a previously submitted transaction.

  • Method Details

    • getOrigPPRef

      public String getOrigPPRef()
      gets the OrigPPRef
      Returns:
      origPPRef

      maps to PayflowParameter ORIGPPREF

    • setOrigPPRef

      public void setOrigPPRef(String origPPRef)
      sets the OrigPPRef
      Parameters:
      origPPRef - String

      maps to PayflowParameter ORIGPPREF

    • generateRequest

      protected void generateRequest()
      Description copied from class: BaseTransaction
      Generates the transaction request.
      Overrides:
      generateRequest in class BaseTransaction