Class FraudReviewTransaction
Fraud Review can be used as alternative to manually approving transactions under fraud on PayPal manager.
............... // Populate data objects ............... *// Ensure that Purchase price ceiling filter is set to $50. // Create a new Sale Transaction with purchase price ceiling amount filter set to $50. // Submit the sale transaction and get the PNRef number from this. FraudReviewTransaction trans = new FraudReviewTransaction("PNRef of Fraud Sale", "RMS_APPROVE", user, connection, 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()); } } *
// Get the Context and check for any contained SDK specific errors (optional code). Context ctx = resp.getTransactionContext(); if (ctx != null && ctx.getErrorCount() %3E 0) { System.out.println("/n" + "Errors = " + ctx.toString()); }
-
Field Summary
Fields inherited from class paypal.payflow.BaseTransaction
requestId -
Constructor Summary
ConstructorsConstructorDescriptionFraudReviewTransaction(String origId, String updateAction, UserInfo userInfo, String requestId) ConstructorFraudReviewTransaction(String origId, String updateAction, UserInfo userInfo, PayflowConnectionData payflowConnectionData, String requestId) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidGenerates the transaction request.protected Stringprotected voidsetUpdateAction(String updateAction) Methods inherited from class paypal.payflow.ReferenceTransaction
getOrigPPRef, setOrigPPRefMethods 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
-
FraudReviewTransaction
public FraudReviewTransaction(String origId, String updateAction, UserInfo userInfo, PayflowConnectionData payflowConnectionData, String requestId) Constructor- Parameters:
origId- String - Original Transaction Id.updateAction- String - Update Action RMS_APPROVE or RMS_MERCHANT_DECLINE.userInfo- UserInfo - User Info object populated with user credentials.payflowConnectionData- PayflowConnectionData - Connection credentials object.requestId- String - Request Id. *Fraud Review can be used as alternative to manually approving transactions under fraud. ............... // Populate data objects ............... *
// Ensure that Purchase price ceiling filter is set to $50. // Create a new Sale Transaction with purchase price ceiling amount filter set to $50. // Submit the sale transaction and get the PNRef number from this. FraudReviewTransaction trans = new FraudReviewTransaction("PNRef of Fraud Sale", "RMS_APPROVE", user, connection, PayflowUtility.getRequestId());
-
FraudReviewTransaction
public FraudReviewTransaction(String origId, String updateAction, UserInfo userInfo, String requestId) Constructor- Parameters:
origId- String - Original Transaction Id.updateAction- String - Update Action RMS_APPROVE or RMS_MERCHANT_DECLINE.userInfo- UserInfo - User Info object populated with user credentials.requestId- String - Request Id. *Fraud Review can be used as alternative to manually approving transactions under fraud. ............... // Populate data objects ............... *
// Ensure that Purchase price ceiling filter is set to $50. // Create a new Sale Transaction with purchase price ceiling amount filter set to $50. // Submit the sale transaction and get the PNRef number from this. FraudReviewTransaction trans = new FraudReviewTransaction("PNRef of Fraud Sale", "RMS_APPROVE", user, PayflowUtility.getRequestId());
-
-
Method Details
-
getUpdateAction
-
setUpdateAction
-
generateRequest
protected void generateRequest()Description copied from class:BaseTransactionGenerates the transaction request.- Overrides:
generateRequestin classReferenceTransaction
-