Class ReferenceTransaction
- Direct Known Subclasses:
CaptureTransaction,FraudReviewTransaction,InquiryTransaction,VoidTransaction
A reference transaction is a transaction which always takes the PNRef of a previously submitted transaction.
-
Field Summary
Fields inherited from class paypal.payflow.BaseTransaction
requestId -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedReferenceTransaction(String trxType, String origId, UserInfo userInfo, String requestId) ConstructorReferenceTransaction(String trxType, String origId, UserInfo userInfo, Invoice invoice, String requestId) ConstructorReferenceTransaction(String trxType, String origId, UserInfo userInfo, Invoice invoice, BaseTender tender, String requestId) ConstructorReferenceTransaction(String trxType, String origId, UserInfo userInfo, PayflowConnectionData payflowConnectionData, String requestId) ConstructorReferenceTransaction(String trxType, String origId, UserInfo userInfo, PayflowConnectionData payflowConnectionData, Invoice invoice, String requestId) ConstructorReferenceTransaction(String trxType, String origId, UserInfo userInfo, PayflowConnectionData payflowConnectionData, Invoice invoice, BaseTender tender, String requestId) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGenerates the transaction request.gets the OrigPPRefvoidsetOrigPPRef(String origPPRef) sets the OrigPPRefMethods inherited from class paypal.payflow.BaseTransaction
addHeader, clearExtendData, getBuyerAuthStatus, getClientInfo, getContext, getExtData, getRequest, getRequestBuffer, getRequestId, getResponse, getTender, getTrxType, getVerbosity, RemoveTransHeader, setBuyerAuthStatus, setClientInfo, setContext, setExtData, setRequestId, setTender, setVerbosity, submitTransaction
-
Constructor Details
-
ReferenceTransaction
protected ReferenceTransaction() -
ReferenceTransaction
public ReferenceTransaction(String trxType, String origId, UserInfo userInfo, PayflowConnectionData payflowConnectionData, String requestId) Constructor- Parameters:
trxType- String - Transaction TypeorigId- 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
Constructor- Parameters:
trxType- String - Transaction TypeorigId- 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 TypeorigId- 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 TypeorigId- 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 TypeorigId- 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 TypeorigId- 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
gets the OrigPPRef- Returns:
- origPPRef
maps to PayflowParameter ORIGPPREF
-
setOrigPPRef
sets the OrigPPRef- Parameters:
origPPRef- Stringmaps to PayflowParameter ORIGPPREF
-
generateRequest
protected void generateRequest()Description copied from class:BaseTransactionGenerates the transaction request.- Overrides:
generateRequestin classBaseTransaction
-